2018-09-18 Paul Thomas <pault@gcc.gnu.org>
commit77f19263b16033b64f7dc39fe6d7ba8bcc3aa698
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Sep 2018 19:35:53 +0000 (18 19:35 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Sep 2018 19:35:53 +0000 (18 19:35 +0000)
tree0efe85800a6fc611837c2452f402dd81d47b0e0f
parentbb6e576c837f0251e4c4f7dd854294d1fae6300b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264409 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/elemental_function_2.f90 [new file with mode: 0644]