re PR fortran/59488 ([OpenMP] named constant in parallel construct leads to "not...
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Oct 2014 11:08:37 +0000 (13:08 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Oct 2014 11:08:37 +0000 (13:08 +0200)
commit18cda88d873b67cfa06ac2a9c8b2e85468a73f4c
tree04f2252e785647862f9851e5481a7c9c979024eb
parent81231d139c7bb882fe12b6e1948d34c8b1e9daf0
re PR fortran/59488 ([OpenMP] named constant in parallel construct leads to "not specified in enclosing parallel" error.)

PR fortran/59488
* trans-openmp.c (gfc_omp_predetermined_sharing): Return
OMP_CLAUSE_DEFAULT_SHARED for parameters or vtables.

* gfortran.dg/gomp/pr59488-1.f90: New test.
* gfortran.dg/gomp/pr59488-2.f90: New test.

From-SVN: r216067
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr59488-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr59488-2.f90 [new file with mode: 0644]