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]
Other format: [Raw text]

Re: c++/10780: compiler crash on code with error


Synopsis: compiler crash on code with error

State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Wed May 14 16:23:44 2003
State-Changed-Why:
    Confirmed:
    
    -----------------------------------
    struct Foo
    {
        Foo() {}
        ~Foo() {}
    };
    
    void func(int x) 
    {
        switch (x) 
        {
            case 0:
                Foo a;
                break;
    
            default: 
                ;
        }
    }
    -----------------------------------
    pr10780.ii: In function `void func(int)':
    pr10780.ii:15: jump to case label
    pr10780.ii:12:   crosses initialization of `Foo a'
    
    Internal compiler error: Error reporting routines re-entered.
    Please submit a full bug report,
    
    but fixed already in GCC 3.3 and mainline (3.4 20030503).

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10780


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