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

--- Comment #21 from anlauf at gcc dot gnu.org ---
Author: anlauf
Date: Sun Mar  3 22:24:00 2019
New Revision: 269357

URL: https://gcc.gnu.org/viewcvs?rev=269357&root=gcc&view=rev
Log:
2019-03-03  Harald Anlauf  <anl...@gmx.de>

        Backport from trunk
        PR fortran/89077
        * decl.c (gfc_set_constant_character_len): Clear original string
        representation after padding has been performed to target length.
        * resolve.c (gfc_resolve_substring_charlen): Check substring
        length for constantness prior to general calculation of length.

        Backport from trunk
        PR fortran/89077
        * gfortran.dg/transfer_simplify_12.f90: New test.
        * gfortran.dg/substr_simplify.f90: New test.


Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/substr_simplify.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/transfer_simplify_12.f90
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/decl.c
    branches/gcc-8-branch/gcc/fortran/resolve.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to