[Bug c++/106901] False positive -Warray-bounds with -O2 or higher?

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 10 17:15:54 GMT 2022


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe I am reading the code wrong.
But size will be >= 5 at the loop.

So it will be executed. If size is >= 5. And that is what the warning is about.


More information about the Gcc-bugs mailing list