[Bug tree-optimization/124207] Wrong warning: array subscript is outside array bounds

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 23 17:49:04 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124207

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> Note the warning at -O2 seems like a GCC 16 regression; I have not looked
> into why yet. 

But that might be inlining differences. because removing the definition of
main, GCC 12+ warns then.


More information about the Gcc-bugs mailing list