[Bug tree-optimization/122824] Array out-of-bounds warning when building with optimization greater than -O1

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 24 22:42:17 GMT 2025


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-11-24
     Ever confirmed|0                           |1
           Keywords|                            |false-positive
             Status|UNCONFIRMED                 |NEW

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Let me try to reduce the testcase further.

But confirmed.
Note the warning is definitely bogus because it is optimized away afterwards.


More information about the Gcc-bugs mailing list