https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93554
Bug ID: 93554 Summary: [8/9/10 Regression] ICE in expand_oacc_for, at omp-expand.c:6035 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With an unused allocatable array b, down to r6 : $ cat z1.f90 program p type t integer :: a integer, allocatable :: b(:) end type type(t) :: x integer :: i !$acc kernels !$acc loop private(x) do i = 0, 31 x%a = 1 end do !$acc end kernels end $ gfortran-5 -c z1.f90 -fopenacc $ $ gfortran-10-20200202 -c z1.f90 -fopenacc during GIMPLE pass: ompexp z1.f90:9:0: 9 | !$acc loop private(x) | internal compiler error: in expand_oacc_for, at omp-expand.c:6035 0xbc7e0b expand_oacc_for ../../gcc/omp-expand.c:6034 0xbdaa27 expand_omp_for ../../gcc/omp-expand.c:6539 0xbdb5ea expand_omp ../../gcc/omp-expand.c:8817 0xbdb8de expand_omp ../../gcc/omp-expand.c:8803 0xbdd4ad execute_expand_omp ../../gcc/omp-expand.c:9046