[Bug middle-end/116151] [12/13/14/15 Regression] G++ fails to diagnose -Waggressive-loop-optimizations when going past the end of an array
arsen at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 30 23:32:09 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116151
--- Comment #2 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
I suspect this is due to EH - -fno-exceptions fixes the C++ case, as does
noexcept, and -fexceptions breaks the C case.
More information about the Gcc-bugs
mailing list