[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:47:33 GMT 2026


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|12.1.0                      |

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note the warning at -O2 seems like a GCC 16 regression; I have not looked into
why yet. But at -O3, GCC has been warning since 12.1.0.


More information about the Gcc-bugs mailing list