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/34187] BIND(C): Public generic with private bind(c) specific does not use bind(C) name



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


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