[Patch, fortran] PR93924/5 - [OOP] ICE with procedure pointer
Paul Richard Thomas
paul.richard.thomas@gmail.com
Wed Jan 27 11:52:44 GMT 2021
This patch fixes PRs 93924/5. It is another 'obvious' patch, whose
consequences are very limited.
I am trying to slip in as many small ready-to-go patches as I can before we
go too far into stage 4. It would be nice to have the patch for PR98573
(posted 23rd Jan) OK'd before the end of the week.
Cheers
Paul
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 1117 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210127/1284cfd4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proc_ptr_52.f90
Type: text/x-fortran
Size: 1556 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210127/1284cfd4/attachment-0001.bin>
More information about the Fortran
mailing list