2018-09-21 Paul Thomas <pault@gcc.gnu.org>
commit7d2d5e468b7a4ca52e2e572b6221c35f81d956a3
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Sep 2018 17:33:29 +0000 (21 17:33 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Sep 2018 17:33:29 +0000 (21 17:33 +0000)
tree724835af8e907b547caed382d219d76051a50c9c
parent50efe9dc386f4f062c8718db0d081ae1fd714b53
2018-09-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/77325
* trans-array.c (gfc_alloc_allocatable_for_assignment): If the
rhs has a charlen expression, convert that and use it.
* trans-expr.c (gfc_trans_assignment_1): The rse.pre for the
assignment of deferred character array vars to a realocatable
lhs should not be added to the exterior block since vector
indices, for example, generate temporaries indexed within the
loop.

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

PR fortran/77325
* gfortran.dg/deferred_character_22.f90 : New test.

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