https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99075
Bug ID: 99075 Summary: Wrong classification of functions memchr and memcpy Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: roland.illig at gmx dot de Target Milestone: --- While translating GCC 11 into German, I ran into the following diagnostic: > Warn about reading past the end of a source array in string manipulation > functions like memchr and memcpy. This diagnostic is wrong. Neither memchr nor memcpy are string manipulation functions. It's true that they are declared in the header <string.h>, but that is a historic accident rather than good namespace design. The word "string" in the diagnostic should be replaced with "memory", corresponding to the function names. By the way, does the warning apply to memcmp as well?