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: "longb at cray dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2010 18:31:36 -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 #1 from longb at cray dot com 2010-08-27 18:31 -------
Comments from original submitter:
A [deleted] user has given me the following code which fails with gcc/4.5.0.
The
code is OK with PGI and CCE. The problem seems to come about from the use of
threadprivate in mod_globals.f90 and using the loop with the copyin clause in
test_loop1.f90. If the threadprivate is commented out, and the copyin replaced
with a private clause, all is well.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45430