http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46752
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-19 16:44:02 UTC --- Author: jakub Date: Tue Apr 19 16:43:51 2011 New Revision: 172720 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172720 Log: PR fortran/46752 * trans-openmp.c (gfc_omp_clause_copy_ctor): Handle non-allocated allocatable. * openmp.c (resolve_omp_clauses): Allow POINTERs and Cray pointers in clauses other than REDUCTION. * trans-openmp.c (gfc_omp_predetermined_sharing): Adjust comment. * gfortran.dg/gomp/crayptr1.f90: Don't expect error about Cray pointer in FIRSTPRIVATE/LASTPRIVATE. * testsuite/libgomp.fortran/crayptr3.f90: New test. * testsuite/libgomp.fortran/allocatable7.f90: New test. * testsuite/libgomp.fortran/pointer1.f90: New test. * testsuite/libgomp.fortran/pointer2.f90: New test. Added: branches/gomp-3_1-branch/libgomp/testsuite/libgomp.fortran/allocatable7.f90 branches/gomp-3_1-branch/libgomp/testsuite/libgomp.fortran/crayptr3.f90 branches/gomp-3_1-branch/libgomp/testsuite/libgomp.fortran/pointer1.f90 branches/gomp-3_1-branch/libgomp/testsuite/libgomp.fortran/pointer2.f90 Modified: branches/gomp-3_1-branch/gcc/fortran/ChangeLog branches/gomp-3_1-branch/gcc/fortran/openmp.c branches/gomp-3_1-branch/gcc/fortran/trans-openmp.c branches/gomp-3_1-branch/gcc/testsuite/ChangeLog branches/gomp-3_1-branch/gcc/testsuite/gfortran.dg/gomp/crayptr1.f90 branches/gomp-3_1-branch/libgomp/ChangeLog