The following invalid testcase triggers an ICE since GCC 4.4.1:

==================
void foo(int i)
{
  int a[i];
  a = {};
}
==================

bug.cc: In function 'void foo(int)':
bug.cc:4:8: internal compiler error: tree check: expected integer_cst, have
nop_expr in process_init_constructor_array, at cp/typeck2.c:912
Please submit a full bug report, [etc.]


-- 
           Summary: [4.4/4.5 Regression] ICE with initializer list for VLA
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, 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=42059

Reply via email to