]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran - fix handling of substring start and end indices
authorHarald Anlauf <anlauf@gmx.de>
Mon, 13 Sep 2021 17:26:35 +0000 (19:26 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 13 Sep 2021 17:26:35 +0000 (19:26 +0200)
commit8d93ba93d3b13ac3d3c34404cad87732c809605b
treec2482ed83729581e4e37154c081a3568003fee08
parent6c79057fae6bbb36c4a4fd61c5b7107a16b71b17
Fortran - fix handling of substring start and end indices

gcc/fortran/ChangeLog:

PR fortran/85130
* expr.c (find_substring_ref): Handle given substring start and
end indices as signed integers, not unsigned.

gcc/testsuite/ChangeLog:

PR fortran/85130
* gfortran.dg/substr_6.f90: Revert commit r8-7574, adding again
test that was erroneously considered as illegal.
gcc/fortran/expr.c
gcc/testsuite/gfortran.dg/substr_6.f90