public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10682: [3.3/3.4 regression] chokes on a typedef for an enum inside a class template
@ 2003-05-20 17:14 jason
0 siblings, 0 replies; 3+ messages in thread
From: jason @ 2003-05-20 17:14 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jason, meinlschmidt, nobody
Synopsis: [3.3/3.4 regression] chokes on a typedef for an enum inside a class template
Responsible-Changed-From-To: unassigned->jason
Responsible-Changed-By: jason
Responsible-Changed-When: Tue May 20 17:14:06 2003
Responsible-Changed-Why:
got it
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10682
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/10682: [3.3/3.4 regression] chokes on a typedef for an enum inside a class template
@ 2003-05-20 21:21 jason
0 siblings, 0 replies; 3+ messages in thread
From: jason @ 2003-05-20 21:21 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jason, lerdsuwa, meinlschmidt
Synopsis: [3.3/3.4 regression] chokes on a typedef for an enum inside a class template
Responsible-Changed-From-To: jason->lerdsuwa
Responsible-Changed-By: jason
Responsible-Changed-When: Tue May 20 21:20:50 2003
Responsible-Changed-Why:
you broke it
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10682
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/10682: [3.3/3.4 regression] chokes on a typedef for an enum inside a class template
@ 2003-05-08 15:43 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-05-08 15:43 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, meinlschmidt, nobody
Old Synopsis: gcc 3.3 chokes on a typedef for an enum, both inside a class template
New Synopsis: [3.3/3.4 regression] chokes on a typedef for an enum inside a class template
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu May 8 15:43:03 2003
State-Changed-Why:
Confirmed, a regression from 3.2:
-------------------------------
template<typename T>
struct Foo {
enum E {a,b,c};
typedef E EE;
};
void baz(Foo<int>::EE x);
--------------------------
g/x> /home/bangerth/bin/gcc-3.2.3-pre/bin/c++ -c z.cc
g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c z.cc
z.cc:7: error: `EE' is not a member of type `Foo<int>'
z.cc:7: error: parse error before `)' token
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c z.cc
z.cc:7: error: variable or field `baz' declared void
z.cc:7: error: `EE' is not a member of `struct Foo<int>'
The whole thing works if we do
typedef int EE;
instead, so this is really a bug.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10682
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-20 21:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-20 17:14 c++/10682: [3.3/3.4 regression] chokes on a typedef for an enum inside a class template jason
-- strict thread matches above, loose matches on Subject: below --
2003-05-20 21:21 jason
2003-05-08 15:43 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).