This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/59488] [OpenMP] named constant in parallel construct leads to "not specified in enclosing parallel" error.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Oct 2014 11:25:03 +0000
- Subject: [Bug fortran/59488] [OpenMP] named constant in parallel construct leads to "not specified in enclosing parallel" error.
- Auto-submitted: auto-generated
- References: <bug-59488-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59488
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct 10 11:24:31 2014
New Revision: 216071
URL: https://gcc.gnu.org/viewcvs?rev=216071&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/gomp/pr59488-1.f90
branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/gomp/pr59488-2.f90
Modified:
branches/gcc-4_8-branch/gcc/fortran/ChangeLog
branches/gcc-4_8-branch/gcc/fortran/trans-openmp.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog