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

--- Comment #8 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Fri May 11 17:59:05 2018
New Revision: 260175

URL: https://gcc.gnu.org/viewcvs?rev=260175&root=gcc&view=rev
Log:
2018-05-11  Steven G. Kargl  <ka...@gcc.gnu.org>

        PR fortran/85521
        Backport from trunk
        * array.c (gfc_resolve_character_array_constructor): Substrings
        with upper bound smaller than lower bound are zero length strings.

2018-05-11  Steven G. Kargl  <ka...@gcc.gnu.org>

        PR fortran/85521
        Backport from trunk
        * gfortran.dg/pr85521_1.f90: New test.
        * gfortran.dg/pr85521_2.f90: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr85521_1.f90
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr85521_2.f90
Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/array.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to