https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98458
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:c231fca5de8e455b263495b20a416a5e47d1029a commit r11-6538-gc231fca5de8e455b263495b20a416a5e47d1029a Author: Paul Thomas <pa...@gcc.gnu.org> Date: Fri Jan 8 10:11:00 2021 +0000 Fortran:Fix simplification of constructors with implied-do [PR98458] 2021-01-08 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/98458 * simplify.c (is_constant_array_expr): If an array constructor expression has elements other than constants or structures, try fixing the expression with gfc_reduce_init_expr. Also, if shape is NULL, obtain the array size and set it. gcc/testsuite/ PR fortran/98458 * gfortran.dg/implied_do_3.f90 : New test.