[Bug c/93848] missing -Warray-bounds warning for array subscript 1 is outside array bounds
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 21 09:14:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93848
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2020-02-21
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hmm, but as you say there isn't an actual access and taking the address of
one-after the array is allowed. With p[2] it appropriately warns.
More information about the Gcc-bugs
mailing list