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

            Bug ID: 89015
           Summary: [9 Regression] ICE in lookup_decl_in_outer_ctx, at
                    omp-low.c:3480
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Changed between 20181104 and 20181111 :


$ cat z1.c
void f (int n, float *x, float *y)
{
  int i;
  int g (void)
  {
    return i;
  }
#pragma omp teams distribute parallel for simd
  for (i = 0; i < n ; i++)
    y[i] = x[i];
}


$ gcc-9-20190120 -c z1.c -fopenmp
during GIMPLE pass: omplower
z1.c: In function 'f':
z1.c:8:9: internal compiler error: in lookup_decl_in_outer_ctx, at
omp-low.c:3480
    8 | #pragma omp teams distribute parallel for simd
      |         ^~~
0x9860e8 lookup_decl_in_outer_ctx
        ../../gcc/omp-low.c:3480
0x996d87 lower_send_shared_vars
        ../../gcc/omp-low.c:6297
0x996d87 lower_omp_taskreg
        ../../gcc/omp-low.c:9000
0x98c626 lower_omp_1
        ../../gcc/omp-low.c:10416
0x98c626 lower_omp
        ../../gcc/omp-low.c:10506
0x999104 lower_omp_for
        ../../gcc/omp-low.c:8287
0x98d40e lower_omp_1
        ../../gcc/omp-low.c:10366
0x98d40e lower_omp
        ../../gcc/omp-low.c:10506
0x996ab3 lower_omp_taskreg
        ../../gcc/omp-low.c:8977
0x98e2cf lower_omp_1
        ../../gcc/omp-low.c:10416
0x98e2cf lower_omp
        ../../gcc/omp-low.c:10506
0x98d3be lower_omp_1
        ../../gcc/omp-low.c:10350
0x98d3be lower_omp
        ../../gcc/omp-low.c:10506
0x99120b execute_lower_omp
        ../../gcc/omp-low.c:10548
0x99120b execute
        ../../gcc/omp-low.c:10595

Reply via email to