[Bug c/83840] missing -Wmemset-elt-size with address of array element
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 14 18:41:42 GMT 2022
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.
More information about the Gcc-bugs
mailing list