https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85521
--- Comment #7 from kargl at gcc dot gnu.org --- Author: kargl Date: Fri May 11 17:30:57 2018 New Revision: 260170 URL: https://gcc.gnu.org/viewcvs?rev=260170&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-8-branch/gcc/testsuite/gfortran.dg/pr85521_1.f90 branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr85521_2.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/array.c branches/gcc-8-branch/gcc/testsuite/ChangeLog