[patch, fortran, testsuite, committed] Remove illegal code from substr_6.f90
Thomas Koenig
tkoenig@netcologne.de
Fri Mar 30 12:18:00 GMT 2018
Hello world,
F2003, 6.1.1. "Substrings" states that
Both the starting point and the ending
point shall be within the range 1, 2, ..., n unless the starting point
exceeds the ending point, in which
case the substring has length zero.
The attached patch, which corrects the test case, has
been committed as obvious.
What's left is the accepts-invalid bug.
Regards
Thomas
2018-03-30 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/85130
* gfortran.dg/substr_6.f90: Remove illegal test for
out-of-bounds substring.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p_substr.diff
Type: text/x-patch
Size: 412 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180330/f88fc67a/attachment.bin>
More information about the Fortran
mailing list