https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82346
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This compiles for me with GCC 7 without any -std=* options. GCC 6 and above default to C++14 while GCC 5 defaults to C++03 so you might need -std=c++11 or -std=gnu++11 to make std::to_string work correctly.