This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44036] I can't declare an external function in an OMP shared statement.
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 May 2010 07:52:06 -0000
- Subject: [Bug fortran/44036] I can't declare an external function in an OMP shared statement.
- References: <bug-44036-19148@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from burnus at gcc dot gnu dot org 2010-05-12 07:52 -------
For information:
Pathscale 3.2.99 and 3.9.99 and Portland pgf90 10.1-0 compile it without
showing an error/warning.
Using the Intel Fortran Compiler 11.1 (20090630), one gets:
test.f90(10): error #6429: This name has already been used as a dummy
function name. [F]
!$OMP shared (a,n,f)
------------------^
test.f90(10): error #7655: A variable is required in this OpenMP context.
[F]
!$OMP shared (a,n,f)
------------------^
Sun Studio 12 and 12.1 (8.4 2009/06/03) show:
!$OMP shared (a,n,f)
^
"test.f90", Line = 10, Column = 19: WARNING: Object F must be a variable to be
in the SHARED clause of the PARALLEL directive.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44036