[Patch, Fortran] PR 47775 - allocatable function RESULT and GENERIC
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Feb 18 21:25:00 GMT 2011
On Fri, Feb 18, 2011 at 09:45:15PM +0100, Tobias Burnus wrote:
> For pointer and allocatable returning functions, a temporary needs to be
> used. This check did not work for generic procedures as the generic and
> the specific function was checked. Result: Wrong code, fortunately often
> "already allocated" error.
>
> Build and regtested on x86-64-linux.
> OK for the trunk? To which versions one should backport? Allocatable
> function results have been introduced in 4.2 ...
>
OK with an update to the comment:
/* Functions returning pointers need temporaries. */
to include at least a mention of allocatables.
As to backporting, I think that neither 4.2 nor 4.3
branch will have another release, so only 4.4 and
4.5 seem appropriate.
--
Steve
More information about the Fortran
mailing list