https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71795
--- Comment #10 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Sun Aug 7 17:01:39 2016 New Revision: 239224 URL: https://gcc.gnu.org/viewcvs?rev=239224&root=gcc&view=rev Log: 2016-08-07 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/71795 Backport from trunk * frontend-passes.c (combine_array_constructor): Don't do anything if the expression is inside an array iterator. 2016-08-07 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/71795 Backport from trunk * gfortran.dg/array_constructor_50.f90: New test. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/array_constructor_50.f90 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/frontend-passes.c branches/gcc-6-branch/gcc/testsuite/ChangeLog