warning: iteration 128 invokes undefined behavior [-Waggressive-loop-optimizations] 迭代数组时,超出了定义的数值大小,调整迭代次数解决了。
[Bug tree-optimization/106842] [12 Regression] misleading warning : iteration X invokes undefined behavior rguenth at gcc dot gnu.org via Gcc-bugs Thu, 20 Jun 2024 02:26:08 -0700 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106842 Richard Biener <rguenth at gcc dot gnu.org> changed:...
The problem is that if we decide to "fix" it we would have to find another solution for "self invocation interception" which we currently support (although it's another open question/undefined behavior, see for example https://issues.redhat.com/browse/CDI-414). Contributor manovotn commented ...