[4.5, Patch, Fortran] PR 36704: Procedure pointer as function result
Janus Weil
jaydub66@googlemail.com
Mon Dec 8 20:46:00 GMT 2008
> Have you tried to use a use-associated proc-pointer returning
> procedures? I would not be surprised if that fails - at least I cannot
> see any update module.c and glancing at the patch, module.c changes seem
> to be required.
How do you come to this conclusion? Actually use-association works
fine AFAICS, and don't see any reason why it shouldn't.
attr.proc_pointer and attr.result (and sym->result) are of course
being saved to the mod-file, and that's all that is needed I think.
The hardest part of this patch was to make the parsing work and to add
the hidden symbol at the right point in time while parsing. Once this
is done and all attributes are set, things are pretty unproblematic.
Cheers,
Janus
PS: I will have a look at Mikael's review soon ...
More information about the Fortran
mailing list