]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: handle initialization of derived type parameter arrays from scalar
authorHarald Anlauf <anlauf@gmx.de>
Sun, 10 Oct 2021 18:11:43 +0000 (20:11 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 13 Nov 2021 19:59:44 +0000 (20:59 +0100)
commitcb85933717e52f1cd91786e6bb595494629ca5c9
tree9bfcf86cad550d537456d21431c3a6feb0097695
parentbed1c391b6f63bafe734f43bf141a1630a240f03
Fortran: handle initialization of derived type parameter arrays from scalar

gcc/fortran/ChangeLog:

PR fortran/99348
PR fortran/102521
* decl.c (add_init_expr_to_sym): Extend initialization of
parameter arrays from scalars to handle derived types.

gcc/testsuite/ChangeLog:

PR fortran/99348
PR fortran/102521
* gfortran.dg/parameter_array_init_8.f90: New test.

(cherry picked from commit 74ccca380cde5e79e082d39214b306a90ded0344)
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/parameter_array_init_8.f90 [new file with mode: 0644]