https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102787
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:1f49f2ad78360ea6634deca9a8cc35f9c4f1051d commit r10-10334-g1f49f2ad78360ea6634deca9a8cc35f9c4f1051d Author: Harald Anlauf <anl...@gmx.de> Date: Sat Nov 27 21:43:52 2021 +0100 Fortran: improve expansion of constant array expressions within constructors gcc/fortran/ChangeLog: PR fortran/102787 * array.c (expand_constructor): When encountering a constant array expression or array section within a constructor, simplify it to enable better expansion. gcc/testsuite/ChangeLog: * gfortran.dg/array_constructor_54.f90: New test. (cherry picked from commit 6b8ecbc6d6652d061d7c72c64352d51eca2df6ca)