From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; 0.7) Gecko/20010316 Description of problem: This code is not valid C++. However, it crashes GCC. template<typename T> void f() { typename T::u; //incorrect C++ } How reproducible: Always Steps to Reproduce: Compile the code Actual Results: testgcctypenamebug.cpp: In function `void f ()': testgcctypenamebug.cpp:4: Internal error: Segmentation fault. Please submit a full bug report. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. Expected Results: Some form of error indicating that the code is incorrect. Additional info: This bug is only relevant to those of us who learn C++ by writing code and seeing if GCC compiles it. :)
Fixed with http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00490.html which will be included in gcc-c++-2.96-96.