------- Comment #31 from davek at gcc dot gnu dot org 2010-01-27 15:48 ------- (In reply to comment #30) > If Dave, you have evidence that older versions of GCC always needed -std=c++0x > in order to compile this boost code, this is a cygwin-specific issue: I just > tried with a 4.4.x gcc and I can compile it without -std=c++0x.
This is 4.3.4, the stock cygwin distro version right now: dkad...@ubik /tmp/boost $ cat test.cpp char16_t a; dkad...@ubik /tmp/boost $ g++ -c test.cpp test.cpp:1: error: 'char16_t' does not name a type dkad...@ubik /tmp/boost $ g++ -c test.cpp -std=c++0x test.cpp:1: error: 'char16_t' does not name a type dkad...@ubik /tmp/boost I take it that much is unsurprising? This is the oldest version of trunk I have lying around, from r155967: dkad...@ubik /tmp/boost $ /gnu/gcc/install-clean/opt/gcc-tools/bin/g++-4 -c test.cpp test.cpp:1:1: error: 'char16_t' does not name a type dkad...@ubik /tmp/boost $ /gnu/gcc/install-clean/opt/gcc-tools/bin/g++-4 -c test.cpp -std=c++0x dkad...@ubik /tmp/boost That is also how everything up to r156253 behaves. Is there something wrong with that? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42880