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.