[Bug fortran/34133] Bind(c,name="") should be rejected for dummies; F2008: allow bind(c) for internal procs

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 19 21:27:00 GMT 2007



------- Comment #5 from burnus at gcc dot gnu dot org  2007-11-19 21:27 -------
Ok. Found it in "15.5.2 Binding labels for procedures" of the Fortran 2008
draft with the expected wording:

"If a procedure has the BIND attribute with no NAME= specifier, and the
procedure is not a dummy procedure, internal procedure, or procedure pointer,
then the binding label of the procedure is the same as the name of the
procedure using lower case letters. Otherwise, the procedure has no binding
label."

Thus it can be handled the same way as gfortran does for 'bind(c,name="")':
Simply use the Fortran name (which encodes the module name and parent procedure
name).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34133



More information about the Gcc-bugs mailing list