Fortran: Fix ICE due to elemental procedure pointers [PR98472].
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 27 Jan 2021 09:12:16 +0000 (09:12 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 27 Jan 2021 09:12:54 +0000 (09:12 +0000)
commit003f0414291d595d2126e6d2e24b281f38f3448f
tree8b199de6aef2fdd1f57e2e06d18d88382803cbb7
parentda5c25f37101cd71f08e31ad581a00840ef75497
Fortran: Fix ICE due to elemental procedure pointers [PR98472].

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

gcc/fortran
PR fortran/98472
* trans-array.c (gfc_conv_expr_descriptor): Include elemental
procedure pointers in the assert under the comment 'elemental
function' and eliminate the second, spurious assert.

gcc/testsuite/
PR fortran/98472
* gfortran.dg/elemental_function_5.f90 : New test.
gcc/fortran/trans-array.c
gcc/testsuite/gfortran.dg/elemental_function_5.f90 [new file with mode: 0644]