This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/60256] No -Wuninitialized warning for strcpy copying to self


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]