[Bug c++/41906] New: [4.5 Regression] ICE with catch(...) and -fpermissive

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 2 13:41:00 GMT 2009


The following valid code snippet triggers an ICE on trunk when compiled with
"-fpermissive":

===================
void foo();

void bar()
{
  try { foo(); }
  catch (...) {}
  catch (int) {}
}
===================

bug.cc: In function 'void bar()':
bug.cc:6:3: warning: '...' handler must be the last handler for its try block
bug.cc:3:6: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

The bug appeared between 2009-09-01 and 2009-09-17.


-- 
           Summary: [4.5 Regression] ICE with catch(...) and -fpermissive
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41906



More information about the Gcc-bugs mailing list