[Patch, fortran] PR64120 - [F03] Wrong handling of allocatable character string

Paul Richard Thomas paul.richard.thomas@gmail.com
Mon Sep 17 10:10:00 GMT 2018


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  <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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 2044 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180917/97733483/attachment.bin>


More information about the Fortran mailing list