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]

[Bug c++/41819] New: [4.5 regression] ICE with try/catch and -fno-exceptions


The following code snippet triggers an ICE when compiled with -fno-exceptions:

===================
void f()
{
  try {}
  catch (...) {}
}
===================

bug.cc: In function 'void f()':
bug.cc:9:10: error: exception handling disabled, use -fexceptions to enable
bug.cc:10:1: internal compiler error: in gen_eh_region, at except.c:351
Please submit a full bug report, [etc.]

The bug appeared between 2009-10-02 and 2009-10-10.

Btw, that's the same problem as PR1054 which was fixed for GCC 3.0 :-(


-- 
           Summary: [4.5 regression] ICE with try/catch and -fno-exceptions
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=41819


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