https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78884

            Bug ID: 78884
           Summary: ICE when gimplifying VLA in OpenMP SIMD region
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, openmp
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amonakov at gcc dot gnu.org
  Target Milestone: ---

Noticed this ICE when looking at OpenMP gimplification/lowering:

void use(int*);
void f(int n)
{
#pragma omp simd
  for (int i=0; i<1024; i++)
    {
      int t[n];
      use(t);
    }
}


$ gcc/cc1 -fopenmp t.c

will ICE (segfault) in omp_add_variable() due to NULL DECL_VALUE_EXPR on 't'.

Reply via email to