This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/46752] OpenMP - Seg fault for unallocated allocatable array in firstprivate clause
- 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: Tue, 19 Apr 2011 16:44:52 +0000
- Subject: [Bug fortran/46752] OpenMP - Seg fault for unallocated allocatable array in firstprivate clause
- Auto-submitted: auto-generated
- References: <bug-46752-4@http.gcc.gnu.org/bugzilla/>
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