[Bug lto/51198] New: [c++0x] [4.7 Regression] ICE with throw expression

reichelt at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 17 23:45:00 GMT 2011


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: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


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.



More information about the Gcc-bugs mailing list