This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5763: [parser]Compiler uses the wrong type
- From: neroden at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jcab at JCABs-Rumblings dot com, nobody at gcc dot gnu dot org
- Date: 20 Jan 2003 06:11:47 -0000
- Subject: Re: c++/5763: [parser]Compiler uses the wrong type
- Reply-to: neroden at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jcab at JCABs-Rumblings dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: [parser]Compiler uses the wrong type
State-Changed-From-To: suspended->analyzed
State-Changed-By: neroden
State-Changed-When: Mon Jan 20 06:11:47 2003
State-Changed-Why:
Status on mainline:
With the 'correct incantation', it works.
With the 'template' missing, the offending line gives 'expected unqualified-id' (which is waaay too common an error, and is very unhelpful).
With the 'typename' missing, it gives
ice.cxx:12: error: ISO C++ forbids declaration of `iterator' with no type
ice.cxx:12: error: template-id `iterator<Phase1>' used as a declarator
With both missing, it gives
ice.cxx:12: error: `iterator<T>' specified as declarator-id
ice.cxx:12: error: cannot declare member `filter<phase_2<Phase1> >::iterator<T>
' within `phase_2<Phase1>'
ice.cxx:12: error: expected function-definition
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5763