Discussion:
[Patch, fortran] PR64120 - [F03] Wrong handling of allocatable character string
Paul Richard Thomas
2018-09-17 10:10:50 UTC
Permalink
This patch is relatively trivial. This initialization of the string
length was not being done.

Bootstraps and regtests on FC28/x86_64. OK for trunk?

Paul


2018-09-17 Paul Thomas <***@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 <***@gcc.gnu.org>

PR fortran/64120
* gfortran.dg/allocatable_scalar_14.f90 : New test.
Janne Blomqvist
2018-09-17 10:34:22 UTC
Permalink
On Mon, Sep 17, 2018 at 1:10 PM Paul Richard Thomas <
Post by Paul Richard Thomas
This patch is relatively trivial. This initialization of the string
length was not being done.
Bootstraps and regtests on FC28/x86_64. OK for trunk?
Ok.
--
Janne Blomqvist
Paul Richard Thomas
2018-09-17 11:23:24 UTC
Permalink
Hi Janne,

Thanks. Committed as revision 264365.

Paul


On 17 September 2018 at 11:34, Janne Blomqvist
Post by Janne Blomqvist
On Mon, Sep 17, 2018 at 1:10 PM Paul Richard Thomas
Post by Paul Richard Thomas
This patch is relatively trivial. This initialization of the string
length was not being done.
Bootstraps and regtests on FC28/x86_64. OK for trunk?
Ok.
--
Janne Blomqvist
--
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein
Loading...