This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9849: malformed template typename produces strange diagnostic
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, ras at transversal dot com, zak at transversal dot com
- Date: 26 Feb 2003 17:06:02 -0000
- Subject: Re: c++/9849: malformed template typename produces strange diagnostic
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, ras at transversal dot com, zak at transversal dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: malformed template typename produces strange diagnostic
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Feb 26 17:06:02 2003
State-Changed-Why:
Confirmed. 3.4 spits out another set of messages:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:8: error: variable or field `foo' declared void
x.cc:8: error: template declaration of `int foo'
x.cc:8: error: expected `('
x.cc:8: error: expected primary-expression
x.cc:8: error: expected primary-expression
x.cc:8: error: expected expected `;'
They are so far off the true reason that I consider this
a bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9849