This is the mail archive of the gcc-patches@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]

Re: [4.5, Patch, Fortran] PR 36704: Procedure pointer as function result


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


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