This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/5763: [parser]Compiler uses the wrong type


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]