Fortran: Fix ICE in gfc_trans_create_temp_array from bad type [PR93678]
commitc058105bc47a0701e157d1028e60f48554561f9f
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 25 Apr 2024 05:56:10 +0000 (25 06:56 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 25 Apr 2024 05:56:10 +0000 (25 06:56 +0100)
treeab45ab8a3f960f6337929d2ac8262514b9c02f8a
parent1fd5a07444776d76cdd6a2eee7df0478201197a5
Fortran: Fix ICE in gfc_trans_create_temp_array from bad type [PR93678]

2024-04-25  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/93678
* trans-expr.cc (gfc_conv_procedure_call): Use the interface,
where possible, to obtain the type of character procedure
pointers of class entities.

gcc/testsuite/
PR fortran/93678
* gfortran.dg/pr93678.f90: New test.
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/pr93678.f90 [new file with mode: 0644]