c++/3526: ICE on inherited enum
neil@gcc.gnu.org
neil@gcc.gnu.org
Thu Jan 2 20:53:00 GMT 2003
Synopsis: ICE on inherited enum
State-Changed-From-To: analyzed->open
State-Changed-By: neil
State-Changed-When: Thu Jan 2 12:53:48 2003
State-Changed-Why:
3.4 gives the helpful
/tmp/bug.C:31: error: `typename test2<T>::MyEnum' referred to as enum
but Comeau rejects the code as follows, so maybe we're still buggy?
"ComeauTest.c", line 16: error: identifier "EN0" is undefined
test2 (int i, int j) : test1<T>(i) {if (j==0) m_en2 = EN0; else m_en2 = EN1; };
^
"ComeauTest.c", line 16: error: identifier "EN1" is undefined
test2 (int i, int j) : test1<T>(i) {if (j==0) m_en2 = EN0; else m_en2 = EN1; };
^
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3526
More information about the Gcc-prs
mailing list