(j3.2006) binding labels and global identifiers
Bill Long
longb
Thu Jun 23 10:35:35 EDT 2011
On 6/23/11 12:21 AM, Malcolm Cohen wrote:
>
> Much more likely,
> SUBROUTINE localname() BIND(C,NAME='SUBR')
> which works perfectly on Unix including IBM and fails on Windows/Intel, or
> SUBROUTINE localname() BIND(C,NAME='subr')
> which works perfectly on Windows/Intel and most Unix, but fails on IBM.
>
The first example is one of the more useful contributions to the thread
so far.
I would argue that the second case (IBM fails) violates the current
wording in the standard since the binding name is the same as the name
of the conflicting subroutine. So IBM can point to the standard and say
that they are doing the right thing and the programmer made a mistake.
Cheers,
Bill
--
Bill Long longb at cray.com
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101
More information about the J3
mailing list