(j3.2006) Binding label consistency in module procedures

Lionel, Steve steve.lionel
Tue May 24 15:48:17 EDT 2016

And how did I miss this?

C1250 (R1225) If MODULE appears in the prefix of a module subprogram and a
binding label is specified, it shall be the same as the binding label
specified in the corresponding separate interface body.


-----Original Message-----
From: j3-bounces at mailman.j3-fortran.org
[mailto:j3-bounces at mailman.j3-fortran.org] On Behalf Of Bill Long
Sent: Monday, May 23, 2016 5:23 PM
To: fortran standards email list for J3 <j3 at mailman.j3-fortran.org>
Subject: Re: (j3.2006) Binding label consistency in module procedures

Isn't this already prohibited by the last sentence of 16.2 p1:

"An entity of the program shall not be identified by more than one binding


On May 23, 2016, at 9:32 AM, Lionel, Steve <steve.lionel at intel.com> wrote:

> Consider:
> module U610575A
> interface
> module subroutine sub1 () bind(C,name='SUB1') end subroutine sub1 end 
> interface end module U610575A
> submodule(U610575A) U610575AS
> contains
> module subroutine sub1 () bind(C,name='NOTSUB1') end subroutine sub1 
> end submodule U610575AS
> The standard says (F2008 for a specific interface that "the
characteristics shall be consistent with those specified in the procedure
definition.". However, the list of procedure characteristics (12.3.1)
includes only "whether it has the BIND attribute" and not the value of NAME=
in a language-binding-spec.
> I don't want to see the standard trying to enforce binding label
consistency in general, but I wondered if submodules should be a special
case. If a program tried to call sub1, it would probably fail to link
because of the name mismatch. Thoughts?
> Steve Lionel
> Intel Developer Support
> Merrimack, NH
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3

Bill Long
longb at cray.com
Fortran Technical Support  &                                  voice:
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101

J3 mailing list
J3 at mailman.j3-fortran.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6616 bytes
Desc: not available
Url : http://mailman.j3-fortran.org/pipermail/j3/attachments/20160524/a7d643a8/attachment.bin 

More information about the J3 mailing list