g++ bug (?) with modern C++ constructs
Vladimir Prus
ghost@cs.msu.su
Wed Mar 29 04:05:00 GMT 2000
Hello.
I think I've found a bug in g++. It may be reproduced both on sparc-solaris2.6
with gcc 2.95.2, and on Debian GNU/Linux system with gcc version 2.95.2
20000220.
The code that is in the attachment (that uses only standard things) causes a
parse error:
g++t.cpp: In function `void f()':
g++t.cpp:21: parse error before `>'
Absolutely the same code in non-template function g() compiles correctly.
You may find the code, the preprocessed code and g++ -v output in the
attachment.
I'll be happy to see this fixed ...
More information about the Gcc-bugs
mailing list