Symbols and FL_PARAMETER in "interface; subroutine" versus "contains; subroutine"
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Wed Nov 15 23:31:00 GMT 2006
Tobias Burnus <burnus@net-b.de> wrote on Wed, 15 Nov 2006:
> I somehow fail to see how this symbol gets propagated or, respectively,
> where it gets resolved for subroutines (thus I can do the same for
> "subroutine"s in interfaces).
The namespaces of a contained procedure and its container are related
via a parent-child relation. INTERFACE namespaces bt default have no
parent, making the namespace of the procedure in which the interface
is defined the parent of the INTERFACE's namespace will probably do
the trick. gfc_find_sym(bol|tree) will then look for the symbol in
the parent namespace, if parent_flag is set.
- Tobi
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Fortran
mailing list