[Bug c/106920] -Warray-bound false positive regression with -O2 or -Os
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 13 06:51:48 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106920
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-09-13
Blocks| |56456
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed, that was an intended change to catch errors with accessing a
subobject of an object at nullptr. There's some related duplicate where we
discuss workarounds.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
[Bug 56456] [meta-bug] bogus/missing -Warray-bounds
More information about the Gcc-bugs
mailing list