Fortran: Fix deferred character lengths in array constructors [PR98517].
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 25 Jan 2021 10:27:51 +0000 (10:27 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 25 Jan 2021 10:27:51 +0000 (10:27 +0000)
commitc6b0e33febbf73abfcc2bb0e28f0b62afe3b0f2a
tree938d3c78385f2c7ad4d7deb04a28cbb03855e18c
parent28229916e1b131ad5d17a73603f65229e0a92f58
Fortran: Fix deferred character lengths in array constructors [PR98517].

2021-01-25  Steve Kargl  <kargl@gcc.gnu.org>

gcc/fortran
PR fortran/98517
* resolve.c (resolve_charlen): Check that length expression is
present before testing for scalar/integer..

gcc/testsuite/
PR fortran/98517
* gfortran.dg/charlen_18.f90 : New test.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/charlen_18.f90 [new file with mode: 0644]