This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/51785] gets not anymore declared


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51785

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #21 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-01 13:44:39 UTC ---
Wouldn't an unconditional

#if _GNU_SOURCE
  extern char *gets (char *__s);
  using ::gets;
#endif

work as well?

alternatively the FE could provide a language extension that would allow

  __using_if_available ::gets;

;)

Anyway, we don't need to rush anything for 4.7.0, fixing this for 4.7.1
and in a correct way is enough IMHO.


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