This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error in GCC
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Internal compiler error in GCC
- From: "Vikhtor L. Porton" <Vikhtor dot Porton at psu dot ru>
- Date: Sat, 22 Jan 2000 09:32:54 +0500
This letter was sended to gcc-bugs@gcc.gnu.org and the newsgroup
fido7.ru.gnu.
g++ -fsyntax-only -S test.ii
i.e. (cc1plus -fsyntax-only test.ii)
produce
test.ii: In method `B::B()':
test.ii:2: Internal compiler error.
-----BEGIN test.ii-----
struct A { virtual ~A(); };
struct B : A { B() {} };
-----END test.ii-----
gcc version 2.95.2 19991024 (release)
configure --prefix=/usr --enable-shared --with-gnu-as --with-gnu-ld --enable
-threads --with-cpu=pentium --enable-cpp --enable-languages=c,c++,objc,java
Linux 2.2.9-ac6 on Pentium 166MMX/32Mb
My experiences with debugger shows that it is SIGSEGV because in file
gcc/calls.c someone have forgotten to test syntax_only_flag before try
to output assembler. But I can't fix this bug myself because I don't
understand where exactly one should insert tests for syntax_only_flag.