https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77795
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Fri Sep 30 18:29:24 2016 New Revision: 240674 URL: https://gcc.gnu.org/viewcvs?rev=240674&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: branches/gcc-6-branch/libstdc++-v3/testsuite/27_io/headers/cstdio/functions_neg.cc Modified: branches/gcc-6-branch/libstdc++-v3/ChangeLog branches/gcc-6-branch/libstdc++-v3/acinclude.m4 branches/gcc-6-branch/libstdc++-v3/config.h.in branches/gcc-6-branch/libstdc++-v3/configure branches/gcc-6-branch/libstdc++-v3/include/c_global/cstdio branches/gcc-6-branch/libstdc++-v3/include/c_std/cstdio