public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5763: [parser]Compiler uses the wrong type
@ 2003-01-20  6:11 neroden
  0 siblings, 0 replies; 2+ messages in thread
From: neroden @ 2003-01-20  6:11 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jcab, nobody

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/5763: [parser]Compiler uses the wrong type
@ 2002-09-14 15:40 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-09-14 15:40 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jcab, nobody

Old Synopsis: Compiler uses the wrong type
New Synopsis: [parser]Compiler uses the wrong type

State-Changed-From-To: open->suspended
State-Changed-By: nathan
State-Changed-When: Sat Sep 14 15:40:30 2002
State-Changed-Why:
    I believe the correct incantation for type iter2 typedef is
    
      typedef typename filter<phase_2<Phase1> >::template iterator<Phase1> iter2;
    
    postponed till the new parser comes on line.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5763


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-20  6:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-20  6:11 c++/5763: [parser]Compiler uses the wrong type neroden
  -- strict thread matches above, loose matches on Subject: below --
2002-09-14 15:40 nathan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).