re PR fortran/85521 (ICE in gfc_resolve_character_array_constructor, at fortran/array...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 10 May 2018 22:45:38 +0000 (22:45 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 10 May 2018 22:45:38 +0000 (22:45 +0000)
commit14ee7de064f757c7677b906010f7e67e702b62c7
treee5914f4160f3bd751f30a1d7357481e8697dd47e
parent7b24db31a41695cfd4adcee73f5edd73ae001517
re PR fortran/85521 (ICE in gfc_resolve_character_array_constructor, at fortran/array.c:2049)

2018-05-10  Steven G. Kargl  <kargl@gcc.gnu.org>

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

2018-05-10  Steven G. Kargl  <kargl@gcc.gnu.org>

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

From-SVN: r260139
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr85521_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr85521_2.f90 [new file with mode: 0644]