gcc -v output: Using built-in specs. Target: i586-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=i586-suse-linux Thread model: posix gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)
The following code produces a compiler seg fault: ================================================== @class aSuperClass; @interface aClass : aSuperClass {} @end @implementation aClass @end =================================================== If the @class line is omitted then the compiler does not crash and an error message is (correctly) printed about the undefined superclass. Admittedly the code is wrong, but so is the crash! -- Summary: Compiler crash caused by @class definition for superclass Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: objc AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: richard dot hutchinson at asa dot co dot uk GCC build triplet: i586-suse-linux GCC host triplet: i586-suse-linux GCC target triplet: i586-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28963