https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105319
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- There is no value of argc that is not an out-of-bound access so the warning is accurate. Note that array bound diagnostics require -O2.