https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66193
--- Comment #21 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:a5088b07e0a547cdacaa6db8ad762fd8c425b1f0 commit r11-9613-ga5088b07e0a547cdacaa6db8ad762fd8c425b1f0 Author: Harald Anlauf <anl...@gmx.de> Date: Sun Feb 6 21:47:20 2022 +0100 Fortran: try simplifications during reductions of array constructors gcc/fortran/ChangeLog: PR fortran/66193 * arith.c (reduce_binary_ac): When reducing binary expressions, try simplification. Handle case of empty constructor. (reduce_binary_ca): Likewise. gcc/testsuite/ChangeLog: PR fortran/66193 * gfortran.dg/array_constructor_55.f90: New test. (cherry picked from commit f3ffea93ef31c03ad8cdcb54e71ec868b57b264f)