Fortran: Fix ICE due to elemental procedure pointers [PR93924/5].
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 27 Jan 2021 11:34:02 +0000 (11:34 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 27 Jan 2021 11:34:27 +0000 (11:34 +0000)
commit4225af228b5d52e8d7593dea49584c91b4bc2e1f
treec462179431fe2cd32e0f2de80ea0aa27b75746c4
parent686b1cdfdc46a476056fe4df6e8186be8c889aca
Fortran: Fix ICE due to elemental procedure pointers [PR93924/5].

2021-01-27  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/93924
PR fortran/93925
* trans-expr.c (gfc_conv_procedure_call): Suppress the call to
gfc_conv_intrinsic_to_class for unlimited polymorphic procedure
pointers.
(gfc_trans_assignment_1): Similarly suppress class assignment
for class valued procedure pointers.

gcc/testsuite/
PR fortran/93924
PR fortran/93925
* gfortran.dg/proc_ptr_52.f90 : New test.
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/proc_ptr_52.f90 [new file with mode: 0644]