From Bugzilla Helper: User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-13smp i686) Description of problem: The following piece of code contains a syntax error that causes g++ to dump core with an itnernal error: template <class T> class foo { struct bar { bar(); }; }; template <class T> void foo<T>::bar::bar() { } Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Just compile the code above. Additional info: Just remove the 'void' before the definition of bar::bar(), and the code compiles fine. gcc-2.96-98
Confirmed still present in 8.0
ICE persists through gcc 3.3, but fixed with gcc 3.4 c++ parser rewrite.