[Bug middle-end/93566] New: [8/9/10 Regression] tree-nested.c ICE on C OpenMP array section reduction

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 4 14:28:00 GMT 2020


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

            Bug ID: 93566
           Summary: [8/9/10 Regression] tree-nested.c ICE on C OpenMP
                    array section reduction
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

void
foo (int *x)
{
  int c[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
  void bar () {
    #pragma omp parallel for reduction(+:x[:10])
    for (int i = 0; i < 10; i++)
      x[i] = c[i];
  }
  bar ();
}

ICEs with -fopenmp starting with
r6-3899-gd9a6bd32adc40a7e1e5c72692a330f14453ad7f0 when OpenMP 4.5 support has
been merged.


More information about the Gcc-bugs mailing list