This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42880] trunk does not compile boost MPL
- From: "davek at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2010 15:48:32 -0000
- Subject: [Bug c++/42880] trunk does not compile boost MPL
- References: <bug-42880-17090@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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