[Bug c++/37530] New: [4.4 regression] ICE with invalid catch
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 15 21:13:00 GMT 2008
The following invalid code snippet triggers an ICE on mainline:
======================================
void foo(bool b)
{
if (b)
try { throw 0; } catch (X) {}
}
======================================
bug.cc: In function 'void foo(bool)':
bug.cc:4: error: expected type-specifier before 'X'
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
The regression was introduced between 2008-07-26 and 2008-07-29
(probably with the tuples merge).
--
Summary: [4.4 regression] ICE with invalid catch
Product: gcc
Version: 4.4.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=37530
More information about the Gcc-bugs
mailing list