http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51216

             Bug #: 51216
           Summary: [4.6/4.7 Regression] ICE with statement expression
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: reich...@gcc.gnu.org


The following code snippet triggers an ICE since GCC 4.6.0 when compiled with
"-std=c++0x":

==========================
void foo()
{
  int i = ({ if (1) ; });
}
==========================

bug.cc: In function 'void foo()':
bug.cc:3:24: sorry, unimplemented: unexpected AST of kind if_stmt
bug.cc:3:24: internal compiler error: in potential_constant_expression_1, at
cp/semantics.c:8426
Please submit a full bug report, [etc.]

Reply via email to