re PR fortran/89077 (ICE using * as len specifier for character parameter)
authorHarald Anlauf <anlauf@gmx.de>
Sat, 9 Feb 2019 17:25:23 +0000 (17:25 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Sat, 9 Feb 2019 17:25:23 +0000 (17:25 +0000)
commit1fe27030ff6424736ddda42874a018d6bc35db70
treecd215e137ab074f7b775c4f7669e2327ff4b535d
parent5585759fdb6cc1e870670970473b789b3b920961
re PR fortran/89077 (ICE using * as len specifier for character parameter)

2019-02-09  Harald Anlauf  <anlauf@gmx.de>

PR fortran/89077
* resolve.c (gfc_resolve_substring_charlen): Check substring
length for constantness prior to general calculation of length.

PR fortran/89077
* gfortran.dg/substr_simplify.f90: New test.

From-SVN: r268726
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/substr_simplify.f90 [new file with mode: 0644]