This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix C++ issues with C11 glibc changes


On 6 January 2012 16:28, Joseph S. Myers wrote:
>
> * gets is still in C++11, and GCC always defines _GNU_SOURCE for C++
> ?(so the library implementation, largely in headers, can use glibc
> ?functions that aren't in ISO C); the declaration is needed for
> ?<cstdio> to import it into namespace std. ?(I doubt it really
> ?*should* have been kept in C++11, given the adoption of various C11
> ?library features there, but it's certainly in C++03 and it's
> ?probably also useful to keep working with older GCC versions.)

I doubt anyone in WG21 would have objected to removing gets() so the
fact it wasn't dropped is probably just because noone brought it to
WG21's attention.

> Tested x86_64-linux-gnu. ?OK for glibc? ?Does this all look right to
> the libstdc++ people?

Looks good to me, thanks for dealing with it so quickly.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]