[Bug c/83841] missing -Wmemset-elt-size with array element plus offset
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 15 00:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83841
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=83840
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Whoops. I didn't read the warning message. The gcst case triggers
-Wstringop-overflow because it offset is past the end of the array. It does
not trigger -Wmemset-elt-size even though it arguably should.
See also bug 83840.
More information about the Gcc-bugs
mailing list