[Bug c/60256] No -Wuninitialized warning for strcpy copying to self
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 2 18:05:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60256
--- Comment #9 from Martin Sebor <msebor at gcc dot gnu.org> ---
Thanks for the reference. The strcmp(s, s) (and likewise memcmp(p, p, n)) case
in bug 65452 is different because unlike this one, strcmp doesn't change the
arrays pointed to by its arguments (which are also not declared restrict) and
so calling the function with the same array is valid.
More information about the Gcc-bugs
mailing list