This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]