This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34133] Bind(c,name="") should be rejected for dummies; F2008: allow bind(c) for internal procs
- 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: 19 Nov 2007 21:27:42 -0000
- Subject: [Bug fortran/34133] Bind(c,name="") should be rejected for dummies; F2008: allow bind(c) for internal procs
- References: <bug-34133-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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