The following code causes an ICE when compiled with the new parser: ---------------------snip here------------------- template <typename T> struct A { void foo() { using T::X; } }; ---------------------snip here------------------- The error message is: bug.cc: In member function `void A<T>::foo()': bug.cc:3: internal compiler error: in validate_nonmember_using_decl, at cp/decl2.c:4152 Please submit a full bug report, [etc.] Since we get a sensible error message with the 3.2/3.3 branch, this is a regression. Release: gcc 3.4-20040127 Environment: i686-pc-linux-gnu How-To-Repeat: g++ -c
State-Changed-From-To: open->analyzed State-Changed-Why: Confirmed. Broke somewhere here (so probably with the new parser): regression/test> ../bin/gcc-2002-12-25/bin/c++ -c test.ii test.ii: In member function `void A<T>::foo()': test.ii:3: error: parse error before `;' token regression/test> ../bin/gcc-2003-01-05/bin/c++ -c test.ii test.ii: In member function `void A<T>::foo()': test.ii:3: internal compiler error: in validate_nonmember_using_decl, at cp/decl2.c:4292
Responsible-Changed-From-To: unassigned->lerdsuwa Responsible-Changed-Why: Working on a fix.
State-Changed-From-To: analyzed->closed State-Changed-Why: Fixed