re PR fortran/87239 (ICE in deferred-length string)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 18 Sep 2018 19:35:53 +0000 (19:35 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 18 Sep 2018 19:35:53 +0000 (19:35 +0000)
commitf435162f88d89a25dfd00ba3af9b37bb5575fd5e
tree0efe85800a6fc611837c2452f402dd81d47b0e0f
parentbf8d83098ffafe1273b11eb5f4a596f96c90c42e
re PR fortran/87239 (ICE in deferred-length string)

2018-09-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/87239
* trans-expr.c (gfc_trans_assignment_1): The rse.pre for the
assignment of deferred character elemental function results to
a realocatable lhs must not be added to the exterior block but
must go to the loop body.

2018-09-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/87239
* gfortran.dg/elemental_function_2.f90 : New test.

From-SVN: r264409
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/elemental_function_2.f90 [new file with mode: 0644]