This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/77795] [6/7 Regression] ::gets declared in C++14 mode
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Sep 2016 18:29:55 +0000
- Subject: [Bug libstdc++/77795] [6/7 Regression] ::gets declared in C++14 mode
- Auto-submitted: auto-generated
- References: <bug-77795-4@http.gcc.gnu.org/bugzilla/>
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