https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119106
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>: https://gcc.gnu.org/g:e8463dac405552ff8bce2355964d62e70f00eb80 commit r15-10078-ge8463dac405552ff8bce2355964d62e70f00eb80 Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Fri Jun 27 11:42:54 2025 +0200 Fortran: Allow for iterator substitution in array constructors [PR119106] PR fortran/119106 gcc/fortran/ChangeLog: * expr.cc (simplify_constructor): Do not simplify constants. (gfc_simplify_expr): Continue to simplify expression when an iterator is present. gcc/testsuite/ChangeLog: * gfortran.dg/array_constructor_58.f90: New test. (cherry picked from commit 3a7fcf4f54ecffdbad03787d4f734c1fb2291ef5)