This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Function pointers to a nested function / contained procedure
- From: Thomas König <tk at tkoenig dot net>
- To: gcc at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Wed, 27 Mar 2019 08:48:23 +0100
- Subject: Re: Function pointers to a nested function / contained procedure
Hi Eric,
> There is an entire machinery in the middle-end and the back-ends to support this (look for trampolines/descriptors in the manual and the source code). This should essentially work out of the box for any language front-end.
Thanks for the pointer. The documentation I have seen seems to point out what to do in a back end to implement this, less towards what to do in a front end. And the source is big :-)
Could somebody maybe shed some additional light on what magic I would have to invoke in the Fortran front end?
Regards, Thomas