Bug 83858

Summary: Internal compiler error: Error reporting routines re-entered
Product: [Retired] Red Hat Linux Reporter: ian balanza-davis <ian.davis>
Component: gcc3Assignee: Jakub Jelinek <jakub>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-03 19:51:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description ian balanza-davis 2003-02-09 19:52:59 UTC
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
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
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,
                                              "another message",
    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;
    case FILE_MENU_EXIT:


Version-Release number of selected component (if applicable):

How reproducible:

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.

Comment 1 Jakub Jelinek 2003-02-17 14:17:42 UTC
You need to include whole preprocessed source.
Please rerun the command above with -save-temps option and attach here
main_window.ii it creates.

Comment 2 Jakub Jelinek 2004-10-03 19:51:24 UTC
No feedback, closing.