[PR90048] Fortran OpenACC 'private' clause rejected for predetermined private loop...
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 17 Apr 2019 08:34:20 +0000 (10:34 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 17 Apr 2019 08:34:20 +0000 (10:34 +0200)
commitb39c686b82ddfa60efe55d437121e0029644e509
treea6adcd73b96508a3e86b88d6e2aa553667de343c
parent04017685100da5a1886be9739bbf1d0e3977263f
[PR90048] Fortran OpenACC 'private' clause rejected for predetermined private loop iteration variable

gcc/fortran/
PR fortran/90048
* openmp.c (gfc_resolve_do_iterator): Handle sharing_clauses for
OpenACC, too.
(gfc_resolve_oacc_blocks): Populate sharing_clauses with private
clauses.
gcc/testsuite/
PR fortran/90048
* gfortran.dg/goacc/private-explicit-kernels-1.f95: New file.
* gfortran.dg/goacc/private-explicit-parallel-1.f95: Likewise.
* gfortran.dg/goacc/private-explicit-routine-1.f95: Likewise.

From-SVN: r270406
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/private-explicit-kernels-1.f95 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/private-explicit-parallel-1.f95 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/private-explicit-routine-1.f95 [new file with mode: 0644]