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

            Bug ID: 67502
           Summary: ICE with collapsed for simd loop inside of parallel
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

With C (-std=gnu99) we ICE on:

void bar (void);

void
foo (void)
{
#pragma omp parallel
#pragma omp for simd collapse(2)
  for (int i1 = 0; i1 < 16; ++i1)
    for (int i2 = 0; i2 < 16; ++i2)
      bar ();
}

It is fine without the parallel, or with just simd instead of for simd, or with
C++.

Reply via email to