http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51198
Bug #: 51198
Summary: [c++0x] [4.7 Regression] ICE with throw expression
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: [email protected]
ReportedBy: [email protected]
The following code snippet triggers an ICE on trunk if it is compiled with
"-flto -std=c++0x":
===========================
struct A
{
int i = 0 ? 0 : throw 1;
};
A a;
===========================
bug.cc:6:4: internal compiler error: tree code 'throw_expr' is not supported in
LTO streams
Please submit a full bug report, [etc.]
Without "-flto" the code compiles fine.
On the 4.6 branch the code is rejected without ICE.