https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98412
Bug ID: 98412
Summary: libcody does not compile with older GCC versions
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: ebotcazou at gcc dot gnu.org
Target Milestone: ---
This fails in libcody:
g++ -std=c++11 -g -O -fno-enforce-eh-specs -fno-stack-protector
-fno-threadsafe-statics -fno-exceptions -fno-rtti
-fdebug-prefix-map=/homes/botcazou/gcc-head/src/libcody/= -W -Wall -include
config.h -I/homes/botcazou/gcc-head/src/libcody \
-MMD -MP -MF buffer.d -c -o buffer.o
/homes/botcazou/gcc-head/src/libcody/buffer.cc
/homes/botcazou/gcc-head/src/libcody/buffer.cc: In member function 'void
Cody::Detail::MessageBuffer::AppendInteger(unsigned int)':
/homes/botcazou/gcc-head/src/libcody/buffer.cc:149:18: error: 'to_string' is
not a member of 'std'
std::string v (std::to_string (u));
^
gmake[3]: *** [buffer.o] Error 1
It's with GCC 4.9.4 so not very old (< 5 years).