From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510 Description of problem: See summary! Version-Release number of selected component (if applicable): 3.0.2 How reproducible: Always Steps to Reproduce: 1. Create a file "bug.C" with the following 3 lines: struct B {}; template<class T> struct A {}; template<class T> struct A<T>::C: B {}; 2. gcc3 bug.C Actual Results: bug.C:3: Internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. Expected Results: Some sort of descriptive error message Additional info: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.0.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux Thread model: posix gcc version 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3)
Still present in g++ 3.2
ICE persists until gcc 3.4, which yields z.c:3: error: qualified name does not name a class before ':' token