2018-05-19 Paul Thomas <pault@gcc.gnu.org>
commit444c325bf417e1b79240d4d74192a2d78ae3c9ab
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 May 2018 09:59:54 +0000 (20 09:59 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 May 2018 09:59:54 +0000 (20 09:59 +0000)
tree37d3d79d63b181d1efcb204fd84191266809ecda
parent4b0ec72db8c5f2974de6f3bc765f0fc3c7b8787f
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@260413 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/select_type_42.f90 [new file with mode: 0644]