2018-05-19 Paul Thomas <pault@gcc.gnu.org>
commit5edbbb22f1566f62c9af256659c99b4fcb842b1b
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 May 2018 10:49:50 +0000 (19 10:49 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 May 2018 10:49:50 +0000 (19 10:49 +0000)
tree1a59f41d667dd5435d8d2e528952bb688a13f425
parentd00ed57d1c34321004e2f0cef8ad7215b4050c18
2018-05-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82923
PR fortran/66694
PR fortran/82617
* trans-array.c (gfc_alloc_allocatable_for_assignment): Set the
charlen backend_decl of the rhs expr to ss->info->string_length
so that the value in the current scope is used.

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

PR fortran/82923
* gfortran.dg/allocate_assumed_charlen_4.f90: New test. Note
that the patch fixes PR66694 & PR82617, although the testcases
are not explicitly included.

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