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

            Bug ID: 98088
           Summary: [9/10/11 Regression] ICE in expand_oacc_collapse_init,
                    at omp-expand.c:1533
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started with r7 :


$ cat z1.c
void f ()
{
  #pragma acc parallel loop tile(2, 3)
  for (int i = 0; i > 8; i++)
    for (int j = 0; j > 8; j++);
}


$ cat z2.c
void f ()
{
  #pragma acc parallel loop tile(2, 3)
  for (int i = 0; i > 8; i++)
    for (long j = 0; j > 8; j++);
}


$ gcc-6 -c z1.c -fopenmp -fopenacc
$
$ gcc-11-20201129 -c z1.c -fopenmp -fopenacc
during GIMPLE pass: ompexp
z1.c: In function 'f':
z1.c:3:11: internal compiler error: in expand_oacc_collapse_init, at
omp-expand.c:1533
    3 |   #pragma acc parallel loop tile(2, 3)
      |           ^~~
0x1479f31 expand_oacc_collapse_init
        ../../gcc/omp-expand.c:1533
0x1479f31 expand_oacc_for
        ../../gcc/omp-expand.c:7537
0x148f361 expand_omp_for
        ../../gcc/omp-expand.c:8011
0x148fd5a expand_omp
        ../../gcc/omp-expand.c:9901
0x149008e expand_omp
        ../../gcc/omp-expand.c:9887
0x1491bed execute_expand_omp
        ../../gcc/omp-expand.c:10133

Reply via email to