From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2.1) Gecko/20021130 Description of problem: experimenting with QT 3.05 on redhat 8 and I have the following feedback: g++ -c -pipe -Wall -W -I/usr/include/fontconfig -I/usr/include/Xft2 -O2 -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt3-gcc3.2/include -I/usr/lib/qt3-gcc3.2/mkspecs/default -o main.o main.cpp g++ -c -pipe -Wall -W -I/usr/include/fontconfig -I/usr/include/Xft2 -O2 -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt3-gcc3.2/include -I/usr/lib/qt3-gcc3.2/mkspecs/default -o main_window.o main_window.cpp main_window.cpp: In member function `int main_window::get_window_size(int)': main_window.cpp:54: warning: `int variable' might be used uninitialized in this function main_window.cpp: In member function `void main_window::do_file_menu(int)': main_window.cpp:115: jump to case label main_window.cpp:102: crosses initialization of `QFile working_file' main_window.cpp:101: crosses initialization of `QString temp_file_name' Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. make: *** [main_window.o] Error 1 the function in main_window.cpp is also included below so you can see the problem... void main_window::do_file_menu (int file_menu_option) { int return_type; switch (file_menu_option) { case FILE_MENU_NEW: return_type = QMessageBox::information (0, "title", "another message", QMessageBox::Ok); break; case FILE_MENU_OPEN: QString temp_file_name = QFileDialog::getOpenFileName (QString::null, "*.cpp"); QFile working_file (temp_file_name); if (working_file.open (IO_ReadWrite)) { QTextStream file_stream (&working_file); QString to_screen; while ( !file_stream.eof()){ to_screen = (to_screen + (file_stream.readLine()) + "\n"); } editor -> setText (to_screen); file_name = temp_file_name; } working_file.close(); break; case FILE_MENU_EXIT: close(); break; } } Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. run make 2. wait 3. read output Actual Results: see message above Expected Results: compiled with no errors to produce an exacutable Additional info: when the order of the case statements is changed such that the case containing the QFile and QString appear last in the function the compilation works just fine.
You need to include whole preprocessed source. Please rerun the command above with -save-temps option and attach here main_window.ii it creates.
No feedback, closing.