On 12/02/2015 11:35 AM, Jakub Jelinek wrote: > On Wed, Dec 02, 2015 at 11:16:10AM -0800, Cesar Philippidis wrote: >>> --- gcc/testsuite/gfortran.dg/goacc/coarray_2.f90 >>> +++ gcc/testsuite/gfortran.dg/goacc/coarray_2.f90 >>> @@ -3,6 +3,7 @@ >>> ! >>> ! PR fortran/63861 >>> ! { dg-xfail-if "<http://gcc.gnu.org/PR63861>" { *-*-* } } >>> +! { dg-excess-errors "TODO" } >> >> This host_data patch exposed a bug in the fortran front end where it was >> allowing arrays to be used as reduction variables. If replace you >> replace codimension with dimension, you'd see a similar ICE. The >> attached patch, while it doesn't make any attempt to fix the gimplifier >> changes, does teach the fortran front end to error on acc reductions >> containing array variables. > > Does the OpenACC standard disallow array reductions? > Just asking, because OpenMP allows them (up to 4.0 only in Fortran, > in 4.5 also C/C++ array sections are allowed). > > If the OpenACC standard disallows them, then it is desirable to reject them > and the patch is ok, otherwise you should try harder to support them ;).
Array reductions aren't supported in OpenACC 2.0. Cesar