------- Comment #2 from hjl dot tools at gmail dot com  2010-07-24 23:02 -------
It failed for me with gcc 4.2.0 and 4.3.0:

[...@gnu-26 rrs]$ cat pr45043.cc 
template < typename > class A;
template < typename T > A < T >::B::~B ()
{}
[...@gnu-26 rrs]$ /export/gnu/import/rrs/117167/usr/bin/gcc -S pr45043.cc
pr45043.cc:2: error: \u2018A< <template-parameter-1-1> >::B\u2019 is not a type
pr45043.cc:2: internal compiler error: tree check: expected identifier_node,
have bit_not_expr in grokdeclarator, at cp/decl.c:7178
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[...@gnu-26 rrs]$ /export/gnu/import/rrs/117167/usr/bin/gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../src/configure --prefix=/export/gnu/import/rrs/117167/usr
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --enable-shared
--enable-threads=posix --enable-haifa --enable-checking
--enable-languages=c,c++,fortran --disable-bootstrap
Thread model: posix
gcc version 4.2.0 20060923 (experimental)
[...@gnu-26 rrs]$ /export/gnu/import/rrs/125623/usr/bin/gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../src/configure --prefix=/export/gnu/import/rrs/125623/usr
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --enable-shared
--enable-threads=posix --enable-haifa --enable-checking
--enable-languages=c,c++,fortran --disable-bootstrap
Thread model: posix
gcc version 4.3.0 20070611 (experimental)
[...@gnu-26 rrs]$ 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45043

Reply via email to