https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64726
Bug ID: 64726
Summary: [OpenACC] ICE with -fopenacc and reduction(+:a)
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, openacc
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
CC: cesar at codesourcery dot com, tschwinge at gcc dot gnu.org
Found when looking at gcc/testsuite/gfortran.dg/goacc/coarray.f95 and PR63861.
The following program ICEs with "gfortran -fopenacc" but compiles with
"-fopenmp"; the ICE is:
internal compiler error: in gfc_trans_omp_do, at fortran/trans-openmp.c:3380
subroutine oacc1()
implicit none
integer :: i
integer :: a
!$acc parallel loop reduction(+:a)
!$omp parallel do reduction(+:a)
do i = 1,5
enddo
end subroutine oacc1