re PR fortran/84109 (ICE in adjustl on allocatable array of strings)
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 19 Sep 2018 17:44:36 +0000 (17:44 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 19 Sep 2018 17:44:36 +0000 (17:44 +0000)
commitad9fe5f344c6ade92a8efab3202be356c94d5733
treeff35a61b077f024034777efaf7e2826d8307eda1
parentebdf17cb73df8e9759c9fd6d0afc0329c0072cd8
re PR fortran/84109 (ICE in adjustl on allocatable array of strings)

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.

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