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

Synopsis: [2003-01-20]Compiler uses the wrong type

State-Changed-From-To: analyzed->open
State-Changed-By: neroden
State-Changed-When: Tue Feb 25 18:46:18 2003
State-Changed-Why:
    Needs to be analyzed to see what diagnostic messages should be coming out.

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: [2003-01-20]Compiler uses the wrong type
@ 2003-02-26 17:11 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-26 17:11 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jcab, nobody

Synopsis: [2003-01-20]Compiler uses the wrong type

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Feb 26 17:11:52 2003
State-Changed-Why:
    Confirmed. The code is illegal, but the error message
    we presently get from mainline are less than helpful:
    x.cc:15: error: ISO C++ forbids declaration of `iterator' with no type
    x.cc:15: error: cannot declare member `filter<phase_2<Phase1> >::iterator'
       within `phase_2<Phase1>'
    x.cc:15: error: expected `;'
    x.cc:18: error: `phase_2<phase_1>::iter2' is not a class-name or namespace-name
    x.cc:18: error: expected constructor, destructor, or type conversion
    x.cc:18: error: expected `,' or `;'
    
    I think we should consider this a bug.
    
    The code is easily fixed, though, adding typename and
    template at the appropriate places in the typedef. It
    then also compiles with all versions of gcc.
    
    W.

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-02-26 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-25 18:46 c++/5763: [2003-01-20]Compiler uses the wrong type neroden
2003-02-26 17:11 bangerth

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).