[Bug fortran/45430] segfault in OMP code with threadprivate and copyin

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Aug 28 10:02:00 GMT 2010



------- 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



More information about the Gcc-bugs mailing list