https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77325

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Fri Sep 21 17:33:29 2018
New Revision: 264486

URL: https://gcc.gnu.org/viewcvs?rev=264486&root=gcc&view=rev
Log:
2018-09-21  Paul Thomas  <pa...@gcc.gnu.org>

        PR fortran/77325
        * trans-array.c (gfc_alloc_allocatable_for_assignment): If the
        rhs has a charlen expression, convert that and use it.
        * trans-expr.c (gfc_trans_assignment_1): The rse.pre for the
        assignment of deferred character array vars to a realocatable
        lhs should not be added to the exterior block since vector
        indices, for example, generate temporaries indexed within the
        loop.

2018-09-21  Paul Thomas  <pa...@gcc.gnu.org>

        PR fortran/77325
        * gfortran.dg/deferred_character_22.f90 : New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/deferred_character_22.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to