2015-10-18 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/66385
* frontend-passes.c (combine_array_constructor): Return early if
inside a FORALL loop.
2015-10-18 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/66385
* gfortran.dg/forall_17.f90: New test.
From-SVN: r228943
+2015-10-18 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ Backport from trunk
+ PR fortran/66385
+ * frontend-passes.c (combine_array_constructor): Return early if
+ inside a FORALL loop.
+
2015-08-07 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/66929
if (in_assoc_list)
return false;
+ /* With FORALL, the BLOCKS created by create_var will cause an ICE. */
+ if (forall_level > 0)
+ return false;
+
op1 = e->value.op.op1;
op2 = e->value.op.op2;
+2015-10-18 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ Backport from trunk
+ PR fortran/66385
+ * gfortran.dg/forall_17.f90: New test.
+
2015-10-01 Uros Bizjak <ubizjak@gmail.com>
* gcc.dg/lto/pr55113_0.c: Skip on all x86 targets.
--- /dev/null
+! { dg-do compile }
+! { dg-options "-ffrontend-optimize" }
+! PR fortran/66385 - this used to ICE
+! Original test case by Mianzhi Wang
+program test
+ double precision::aa(30)
+ double precision::a(3,3),b
+ b=1d0
+ forall(i=1:3)
+ a(:,i)=b*[1d0,2d0,3d0]
+ end forall
+
+ forall(i=1:10)
+ aa(10*[0,1,2]+i)=1d0
+ end forall
+
+end program