re PR fortran/64120 ([F03] Wrong handling of allocatable character string)
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 17 Sep 2018 11:22:27 +0000 (11:22 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 17 Sep 2018 11:22:27 +0000 (11:22 +0000)
commitd44235fbe06e52cf670fccc7419a580bfedabec9
treec57268dca7f97e743b78d13dc2c8485eaef52229
parentecfb64f692c561ef16bca0ff17b3d7e9ee14b418
re PR fortran/64120 ([F03] Wrong handling of allocatable character string)

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

PR fortran/64120
* trans-decl.c (gfc_get_symbol_decl): Flag allocatable, scalar
characters with a variable length expression for deferred init.
(gfc_trans_deferred_vars): Perform the assignment for these
symbols by calling gfc_conv_string_length.

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

PR fortran/64120
* gfortran.dg/allocatable_scalar_14.f90 : New test.

From-SVN: r264365
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocatable_scalar_14.f90 [new file with mode: 0644]