[Bug c++/51215] New: [4.7 Regression] ICE with invalid array initializer

reichelt at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 18 22:53:00 GMT 2011


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

             Bug #: 51215
           Summary: [4.7 Regression] ICE with invalid array initializer
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


The following invalid line of code triggers an ICE on trunk:

==========================
int x[] = { [0.] {} };
==========================

bug.cc:1:14: error: expected identifier before numeric constant
bug.cc:1:21: internal compiler error: in check_array_designated_initializer, at
cp/decl.c:4679
Please submit a full bug report, [etc.]



More information about the Gcc-bugs mailing list