2018-03-24 Thomas Koenig <tkoenig@gcc.gnu.org>
commit5f29dd051185fc7344a905ebcdf8ffdd0c975b0e
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Mar 2018 17:37:21 +0000 (24 17:37 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Mar 2018 17:37:21 +0000 (24 17:37 +0000)
tree658e0a2b9fedcc9dcd5671990949f4b417428c02
parent2c6ca8fc093fa56248a5f84a549851ffed711698
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258835 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/substr_7.f90 [new file with mode: 0644]