https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125379
--- Comment #8 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
So the symbol isn't found because the name of the symtree is
not the same:
symtree: '@10' || symbol: 'olp_polvec' || binding_label:
'olp_polvec'
type spec : (UNKNOWN 0 C_INTEROP)
attributes: (PROCEDURE MODULE-PROC EXTERNAL BIND(C)
USE-ASSOC(blha_olp_interfaces) SUBROUTINE ARRAY-OUTER-DEPENDENCY)
Formal arglist: eps
symtree: '@18' || symbol: 'blha_driver_t'
type spec : (UNKNOWN 0)
attributes: (DERIVED USE-ASSOC(blha_olp_interfaces) PROC-POINTER-COMP)
components:
(blha_olp_polvec (UNKNOWN 0 C_INTEROP) PPC () PUBLIC)
hash: 54145116
Procedure bindings:
Operator bindings:
Looks like a job for gfc_traverse_ns.