https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83840
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Last reconfirmed| |2022-03-14 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Confirmed, just ran into this too. I bet we should special case ARRAY_REF with 0 index, for non-zero indexes the warning would be more complicated and less obvious.