This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41819] New: [4.5 regression] ICE with try/catch and -fno-exceptions
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Oct 2009 20:29:48 -0000
- Subject: [Bug c++/41819] New: [4.5 regression] ICE with try/catch and -fno-exceptions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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