c++/5763: [parser]Compiler uses the wrong type
neroden@gcc.gnu.org
neroden@gcc.gnu.org
Mon Jan 20 06:13:00 GMT 2003
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
More information about the Gcc-bugs
mailing list