[Bug c++/51785] New: gets not anymore declared

drepper.fsp at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jan 7 15:31:00 GMT 2012


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.



More information about the Gcc-bugs mailing list