2018-09-19 Paul Thomas <pault@gcc.gnu.org>
commit3a91b7dfa454ab5ace30a54876deb7070f1f7850
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Sep 2018 17:44:36 +0000 (19 17:44 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Sep 2018 17:44:36 +0000 (19 17:44 +0000)
treeff35a61b077f024034777efaf7e2826d8307eda1
parent02e7d4b5ae1f230ab8b321c3088aa1cc8f576660
2018-09-19  Paul Thomas  <pault@gcc.gnu.org>

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

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

PR fortran/84109
* gfortran.dg/elemental_function_3.f90 : New test.

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