This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Sep 2017 23:09:10 +0000
- Subject: [Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std
- Auto-submitted: auto-generated
- References: <bug-82346-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82346
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The condition for std::to_string being declared in gcc-5 is:
#if __cplusplus >= 201103L && defined(_GLIBCXX_USE_C99)
So presumably _GLIBCXX_USE_C99 is false. If you're using glibc 2.26 you might
have hit https://sourceware.org/bugzilla/show_bug.cgi?id=22146 and so need a
glibc fix so that libstdc++ correctly detects C99 support.