From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010729 Description of problem: gcc aborts compilation with an ICE at the file koffice/filters/kspread/qpro/libqpro/src/stream.cc of the current snapshot of KDE koffice. How reproducible: Always Steps to Reproduce: 1. cvs co koffice 2. ./configure --prefix=/opt/kde-2.2 --enable-debug 3. make Actual Results: c++ -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I. -I./.. -I/opt/kde-2.2/include -I/usr/lib/qt-2.3.1/include -I/usr/X11R6/include -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion -fno-builtin -Wnon-virtual-dtor -Wno-long-long -g -O2 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -Wp,-MD,.deps/stream.pp -c stream.cc -fPIC -DPIC -o .libs/stream.o stream.cc: In method `QpIStream &QpIStream::operator>> (QP_INT64 &)': stream.cc:192: Internal error: Segmentation fault. Please submit a full bug report. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. make: *** [stream.lo] Fehler 1 Additional info: gcc (I tried both 2.96-85 and -95 from rawhide) shows the ICE with the options "-Os", "-O1" and -"o2". However, with "-O0" the compilation succeeds!
Please provide preprocessed source (ie. add -save-temps option to c++ command line shown above and attach here stream.ii). AFAIK we're building koffice without problems, so it must depend on exact headers included in.
Created attachment 28333 [details] The requested preprocessed source of stream.cc
Can you try gcc-c++-2.96-96? This looks like #50244 (and in fact I cannot reproduce it with 2.96-96).
Okay, the update to gcc-2.96-96 fixed the problem for me, too. Great job, Jakub! (I don't close the bug by myself with this comment as I'm not sure if you want to mark it as a duplicate or not.)
*** This bug has been marked as a duplicate of 50244 ***