This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34187] BIND(C): Public generic with private bind(c) specific does not use bind(C) name
- 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: 22 Nov 2007 11:56:54 -0000
- Subject: [Bug fortran/34187] BIND(C): Public generic with private bind(c) specific does not use bind(C) name
- References: <bug-34187-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2007-11-22 11:56 -------
Some more debugging. The problem is that in gfc_conv_function_call /
gfc_sym_mangled_function_id of "main", is_bind_c=1 but binding_label = '\0'.
Actually, already for gfc_search_interface, I get sym=test and bind= '\0'.
Educated guess: The problem is in module.c; the binding label is properly
written into the .mod file (from looking at it) but in load_generic_interfaces,
the "gfc_get_symbol (p, NULL, &sym);" returns for p = "test" no binding name.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34187