https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77795
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Fri Sep 30 18:28:53 2016 New Revision: 240672 URL: https://gcc.gnu.org/viewcvs?rev=240672&root=gcc&view=rev Log: libstdc++/77795 Only declare ::gets for C++98 and C++11 PR libstdc++/77795 * acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): Use -std=gnu++11 to check for gets. * config.h.in: Regenerate. * configure: Regenerate. * include/c_global/cstdio [!_GLIBCXX_HAVE_GETS] (gets): Only declare for C++98 and C++11. * include/c_std/cstdio [!_GLIBCXX_HAVE_GETS] (gets): Likewise. * testsuite/27_io/headers/cstdio/functions_neg.cc: New test. Added: trunk/libstdc++-v3/testsuite/27_io/headers/cstdio/functions_neg.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/acinclude.m4 trunk/libstdc++-v3/config.h.in trunk/libstdc++-v3/configure trunk/libstdc++-v3/include/c_global/cstdio trunk/libstdc++-v3/include/c_std/cstdio