re PR fortran/70068 (ICE: out of memory on involving empty substring)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 24 Mar 2018 17:37:21 +0000 (17:37 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 24 Mar 2018 17:37:21 +0000 (17:37 +0000)
commit335d03387408e2ce580e59ace0a593d7d9e1950d
tree658e0a2b9fedcc9dcd5671990949f4b417428c02
parentba77f7bad0f0898454cdef193a24a825cbc3f953
re PR fortran/70068 (ICE: out of memory on involving empty substring)

2018-03-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/70068
* expr.c (find_substring_ref): Change types of start, end
and length variables to gfc_charlen_t. Set length to zero
for empty substring.

2018-03-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/70068
* gfortran.dg/substr_7.f90: New test.

From-SVN: r258835
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/substr_7.f90 [new file with mode: 0644]