-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
Description
| Bugzilla Link | 9585 |
| Resolution | FIXED |
| Resolved on | Apr 04, 2011 02:20 |
| Version | trunk |
| OS | All |
| Blocks | #9955 |
| Reporter | LLVM Bugzilla Contributor |
| CC | @chandlerc,@DougGregor,@efriedma-quic |
Extended Description
$ cat test2.cc
#include
$ ./clang++ -nostdinc++ -isystem /opt/local/include/gcc46/c++/ -isystem /opt/local/include/gcc46/c++/x86_64-apple-darwin10/ -c test2.cc
...
/opt/local/include/gcc46/c++/bits/stl_algobase.h:731:32: error: expected ';' in 'for' statement specifier
for (__decltype(__n + 0) __niter = __n;
^
...
20 errors generated.
$ g++-mp-4.6 -c test2.cc
$
Note that this is not compiling in C++0x mode.
__decltype only appears twice in libstdc++-4.6.0, so arguably we should just get gcc to remove it for 4.6.1, but if clang can support it directly that'll make it easier for early adopters.