This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: gets with C++ and GCC before 4.7
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org, libstdc++ at gcc dot gnu dot org
- Date: Fri, 9 Mar 2012 12:50:00 -0800 (PST)
- Subject: Re: gets with C++ and GCC before 4.7
- References: <Pine.LNX.4.64.1203052335580.17538@digraph.polyomino.org.uk> <Pine.LNX.4.64.1203080131220.20670@digraph.polyomino.org.uk> <CADZpyizSrJ95Trybfrb9nbcg772z4hyN4VjbiNPRc08ghJKoEA@mail.gmail.com> <Pine.LNX.4.64.1203081146480.9980@digraph.polyomino.org.uk> <20120309184929.680072C0A7@topped-with-meat.com> <Pine.LNX.4.64.1203091959050.16963@digraph.polyomino.org.uk>
> As I understand it, the libstdc++ maintainers would prefer to have gets
> declarations for C++ up to and including C++11, following the C++
> standard, and only disable the declaration in a future C++17 mode. That
> is, the state immediately after my commit
> 8ecd6b2a1283a28bcf56cfe48099fafa412a3929 would be preferable to them, and
> from their point of view no such macro would need to be defined because
> C++17 mode would use a newer __cplusplus value to disable the declaration.
If C++11 says that #include <stdio.h> should declare gets regardless
of things like feature-test macros, then it seems pretty cut and dry.
Thanks,
Roland