This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR36528 - Cray pointer to function mishandled
Dear Paul,
Paul Richard Thomas wrote:
> No sooner did I write this than a simple solution became clear:
> tmp = gfc_evaluate_now (tmp, &se->pre);
>
That's short indeed.
> I think that achieves exactly what is needed, albeit at the expense of
> a pointer assignment for each call. However, this is intrinsic to the
> Cray pointer mechanism, as it is implemented in gfortran.
>
I think that is not a problem.
Your patch is approved, if it survives regtesting. I think it can still
go in 4.4.0 as it is simple and only affects Cray pointers.
Tobias