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 c++/42880] trunk does not compile boost MPL



------- 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:

DKAdmin@ubik /tmp/boost
$ cat test.cpp
char16_t a;

DKAdmin@ubik /tmp/boost
$ g++ -c test.cpp
test.cpp:1: error: 'char16_t' does not name a type

DKAdmin@ubik /tmp/boost
$ g++ -c test.cpp -std=c++0x
test.cpp:1: error: 'char16_t' does not name a type

DKAdmin@ubik /tmp/boost

I take it that much is unsurprising?

This is the oldest version of trunk I have lying around, from r155967:

DKAdmin@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

DKAdmin@ubik /tmp/boost
$ /gnu/gcc/install-clean/opt/gcc-tools/bin/g++-4 -c test.cpp  -std=c++0x

DKAdmin@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


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