This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Confirmed template parsing bug: bug in error message generation.
> >...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;
^