This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal compiler error in GCC



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.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]