]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Allow for iterator substitution in array constructors [PR119106]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 27 Jun 2025 09:42:54 +0000 (11:42 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 21 Jul 2025 09:51:23 +0000 (11:51 +0200)
commit3a7fcf4f54ecffdbad03787d4f734c1fb2291ef5
tree88bb658ba955175196d2758592b01c0e017e3395
parent8f41c87654fd819e48c9f6f1ac3d87e35794d310
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.
gcc/fortran/expr.cc
gcc/testsuite/gfortran.dg/array_constructor_58.f90 [new file with mode: 0644]