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.