https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012
--- Comment #20 from Jonathan Wakely <redi at gcc dot gnu.org> --- Also, I assume this is only a problem for -std=c++98 or -std=gnu++98, because if the system headers don't declare those functions for C++11 and later dialects then that's a bug in those system headers.