https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102817
--- Comment #9 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:4b99f0c90f272c5cd94af20f15b95ba702fa0aa6 commit r10-10268-g4b99f0c90f272c5cd94af20f15b95ba702fa0aa6 Author: Harald Anlauf <anl...@gmx.de> Date: Fri Nov 5 23:48:20 2021 +0100 Fortran: fix simplification of array-valued parameter expressions gcc/fortran/ChangeLog: PR fortran/102817 * expr.c (simplify_parameter_variable): Copy shape of referenced subobject when simplifying. gcc/testsuite/ChangeLog: PR fortran/102817 * gfortran.dg/pr102817.f90: New test. (cherry picked from commit bcf3728abe8488882922005166d3065fc5fdfea1)