]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran - simplify length of substring with constant bounds
authorHarald Anlauf <anlauf@gmx.de>
Thu, 19 Aug 2021 19:00:45 +0000 (21:00 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 19 Aug 2021 19:00:45 +0000 (21:00 +0200)
commitd881460deb1f0bdfc3e8fa2d391a03a9763cbff4
tree99d7aa1b245947c4775682b02b4b5a598a7b983e
parent77bf9f83b8e388de8bedb259991f588a7b8a7f57
Fortran - simplify length of substring with constant bounds

gcc/fortran/ChangeLog:

PR fortran/100950
* simplify.c (substring_has_constant_len): New.
(gfc_simplify_len): Handle case of substrings with constant
bounds.

gcc/testsuite/ChangeLog:

PR fortran/100950
* gfortran.dg/pr100950.f90: New test.
gcc/fortran/simplify.c
gcc/testsuite/gfortran.dg/pr100950.f90 [new file with mode: 0644]