This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51785] New: gets not anymore declared
- From: "drepper.fsp at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 Jan 2012 15:31:15 +0000
- Subject: [Bug c++/51785] New: gets not anymore declared
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51785
Bug #: 51785
Summary: gets not anymore declared
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: drepper.fsp@gmail.com
glibc 2.15 and later don't declare gets anymore for ISO C11 mode and if
_GNU_SOURCE is defined. This causes problems with the cstdio header which
unconditionally uses
using ::gets;
Something has to be done about this. If you want glibc to define a macro to
signal that gets is not declared let me know. Otherwise recognize __USE_GNU.
The problem still applies to the trunk.