This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/45430] segfault in OMP code with threadprivate and copyin
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Aug 2010 10:02:01 -0000
- Subject: [Bug fortran/45430] segfault in OMP code with threadprivate and copyin
- References: <bug-45430-14710@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2010-08-28 10:02 -------
This is invalid.
See OpenMP 3.0, 2.9.4.1, COPYIN restrictions on page 102, lines 17-18:
An array with the ALLOCATABLE attribute must be in the allocated state. Each
thread's copy of that array must be allocated with the same bounds.
In the testcase pb isn't in allocated state.
See also http://openmp.org/forum/viewtopic.php?f=5&t=7&start=10#p292
for more details.
I hope this is going to be changed for OpenMP 3.1, when its draft is released,
we'll implement it the way it is written there.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45430