+2011-07-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR fortran/49698
+ * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Initialize
+ inner_size to gfc_index_one_node instead of integer_one_node.
+
2011-07-10 Tobias Burnus <burnus@net-b.de>
PR fortran/49690
count = gfc_create_var (gfc_array_index_type, "count");
gfc_add_modify (block, count, gfc_index_zero_node);
- inner_size = integer_one_node;
+ inner_size = gfc_index_one_node;
lss = gfc_walk_expr (expr1);
rss = gfc_walk_expr (expr2);
if (lss == gfc_ss_terminator)
-2011-07-11 Jeff Law <law@redhat.com>
+2011-07-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR fortran/49698
+ * gfortran.dg/pr49698.f90: New test.
+
+2011-07-11 Jeff Law <law@redhat.com>
* gcc.dg/uninit-pred-8_b.c: Disable dominator optimizations.
--- /dev/null
+! PR fortran/49698
+! { dg-do compile }
+subroutine foo (x, y, z)
+ type S
+ integer, pointer :: e => null()
+ end type S
+ type T
+ type(S), dimension(:), allocatable :: a
+ end type T
+ type(T) :: x, y
+ integer :: z, i
+ forall (i = 1 : z)
+ y%a(i)%e => x%a(i)%e
+ end forall
+end subroutine foo