]> 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>
Mon, 25 Jan 2021 08:56:41 +0000 (08:56 +0000)
commitf6adbc3702edb4b6931731282fe4b2350eba1e0d
tree2758a89bc680b133c52e94e091895c19176ce9f7
parent73746ede69fa38c8a59c9ad389e107df2b2e1485
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.

(cherry picked from commit feae0af82753e06fbff6103da5fbb3b28e1ddbd7)
gcc/fortran/trans-array.c
gcc/testsuite/gfortran.dg/deferred_character_36.f90 [new file with mode: 0644]