The following invalid code snippet triggers an ICE since GCC 4.1.0:

===========================================
void foo(int n, int a[n], int 0);
void bar() {}
===========================================

bug.c:1: error: expected ';', ',' or ')' before numeric constant
bug.c:2: internal compiler error: in put_pending_sizes, at stor-layout.c:108
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2/4.3/4.4 regression] ICE with invalid function
                    declaration
           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=35444

Reply via email to