https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80638
--- Comment #3 from Andrew Pinski ---
>Calls to known library functions that overflow should be diagnosed regardless
>of -ansi.
No, because mempcpy is not included in the ISO standard. Basically -ansi is
the same as doing -fstd=c11.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80638
--- Comment #2 from Andrew Pinski ---
If you had used __builtin_mempcpy you would have got the warning.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80638
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---