https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115625
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- ``` uint16_t f[1]; int g; f[g] = 9; ``` This code is undefined but at -O1 and above is optimized out since nobody uses the value; it just sets it.