Confirmed template parsing bug: bug in error message generation.
Robert Lipe
robertlipe@usa.net
Wed Mar 31 23:46:00 GMT 1999
> >...containing a single code snippet that demonstrates the problem...
> "extern foo<int> bar;"
>
> Parse error, but line is well-formed; should be undeclared identifier
I cannot confirm or deny of the line is well formed, but the
(EDGFE-based) UW C++ compiler generates what looks like a more helpful
error message.
$ CC /tmp/p.cc
"/tmp/p.cc", line 1: error: foo is not a class template
extern foo<int> bar;
^
More information about the Gcc
mailing list