[Patch, fortran] PR90786 - [7/8/9/10 Regression] ICE on procedure pointer assignment to function with class pointer result
Andrew Benson
abenson@carnegiescience.edu
Sat Jun 8 16:25:00 GMT 2019
Thanks Paul for the quick fix!
On Saturday, June 8, 2019 4:56:46 PM PDT Paul Richard Thomas wrote:
> Committed as obvious in revision 272084.
>
> The problem was that the lhs symbol itself was not being checked as a
> proc_pointer - just the expression component.
>
> I will get on with backporting tomorrow.
>
> Cheers
>
> Paul
>
> 2019-06-08 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/90786
> * trans-expr.c (pointer_assignment_is_proc_pointer) Remove as
> it is very simple and only called from one place.
> (gfc_trans_pointer_assignment): Rename non_proc_pointer_assign
> as non_proc_ptr_assign. Assign to it directly, rather than call
> to above, deleted function and use gfc_expr_attr instead of
> only checking the reference chain.
>
> 2019-06-08 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/90786
> * gfortran.dg/proc_ptr_51.f90 : New test.
--
* Andrew Benson: http://users.obs.carnegiescience.edu/abenson/contact.html
* Galacticus: https://bitbucket.org/galacticusdev/galacticus
More information about the Fortran
mailing list