The following invalid code snippet triggers an ICE in the C frontend
since at least GCC 2.95.3:

==================
void foo()[] {}
==================

bug.c:1: error: declaration of 'foo' as array of voids
bug.c:1: internal compiler error: tree check: expected function_decl, have
var_decl in start_function, at c-decl.c:5933
Please submit a full bug report, [etc.]


-- 
           Summary: ICE on invalid function definition
           Product: gcc
           Version: 4.2.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=27719

Reply via email to