c++/10342: Internal compiler error: Error reporting routines re-entered.

pdemarco@ppg.com pdemarco@ppg.com
Mon Apr 7 20:56:00 GMT 2003


>Number:         10342
>Category:       c++
>Synopsis:       Internal compiler error: Error reporting routines re-entered.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 07 20:56:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Me
>Release:        g++ (GCC) 3.2 (mingw special 20020817-1)
>Organization:
>Environment:
Windows 2000
>Description:
I know there are errors in this, but G++ claims I should submit this because of the internal error.
Thanks!

#include <iostream>
#include <string>

using namespace std;

int main()
{
        int iI = 1;
        iI++;
        switch ( iI )
        {
                case 1:
                        cout << "One" << endl;
                break;

                case 2:
                        string sFoo;
                        cout << "Two" << endl;
                        if ( m_bar > 0 )
                        {
                                cout << dFoo << endl;
                        }

                        return 0;
                break;

                case 3:
                        cout << "Thress" << endl;
                break;
        }
        return 0;
}
>How-To-Repeat:
g++ foo.cpp
>Fix:
None known
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list