]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix deferred character lengths in array constructors [PR93833].
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 29 Dec 2020 17:37:25 +0000 (17:37 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 29 Dec 2020 17:37:25 +0000 (17:37 +0000)
commitfeae0af82753e06fbff6103da5fbb3b28e1ddbd7
tree3f47e7f4abee7148e23f980847905d4f92c6b343
parent02a2d78f7ad05fae2cacd151e6c68456020a2158
Fortran: Fix deferred character lengths in array constructors [PR93833].

2020-12-29  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/93833
* trans-array.c (get_array_ctor_var_strlen): If the character
length backend_decl cannot be found, convert the expression and
use the string length. Clear up some minor white space issues
in the rest of the file.

gcc/testsuite/
PR fortran/93833
* gfortran.dg/deferred_character_36.f90 : New test.
gcc/fortran/trans-array.c
gcc/testsuite/gfortran.dg/deferred_character_36.f90 [new file with mode: 0644]