re PR fortran/63861 (OpenACC coarray ICE (also with OpenMP?))
authorCesar Philippidis <cesar@codesourcery.com>
Wed, 2 Dec 2015 19:59:27 +0000 (11:59 -0800)
committerCesar Philippidis <cesar@gcc.gnu.org>
Wed, 2 Dec 2015 19:59:27 +0000 (11:59 -0800)
commit2f9bcf538c95f97e7920dc6c91085c4180678d63
tree36c3f7c349c45914575bc3fab67cd3e384765a5b
parente7fc41a776a1e85fd052fc84184618768274a1af
re PR fortran/63861 (OpenACC coarray ICE  (also with OpenMP?))

gcc/fortran/
PR fortran/63861
* openmp.c (gfc_match_omp_clauses): Allow subarrays for acc reductions.
(resolve_omp_clauses): Error on any acc reductions on arrays.

gcc/testsuite/
* gfortran.dg/goacc/array-reduction.f90: New test.
* gfortran.dg/goacc/assumed.f95: Update expected diagnostics.
* gfortran.dg/goacc/coarray.f95: Likewise.
* gfortran.dg/goacc/coarray_2.f90: Likewise.
* gfortran.dg/goacc/reduction-2.f95: Likewise.
* gfortran.dg/goacc/reduction.f95: Likewise.

From-SVN: r231204
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/array-reduction.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/assumed.f95
gcc/testsuite/gfortran.dg/goacc/coarray.f95
gcc/testsuite/gfortran.dg/goacc/coarray_2.f90
gcc/testsuite/gfortran.dg/goacc/reduction-2.f95
gcc/testsuite/gfortran.dg/goacc/reduction.f95