[Bug c++/90367] Spurious warning array subscript is above array bounds

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 6 14:58:00 GMT 2019


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think you reduced it too much.  Because with the reduction the warning is
correct.  j[i] will be accessed above the array bounds. Though j[0] is always
equal to j[0].


More information about the Gcc-bugs mailing list