1! PR tree-optimization/29290
2! { dg-do compile }
3! { dg-options "-O3 -ftree-loop-linear" }
4
5subroutine pr29290 (a, b, c, d)
6  integer c, d
7  real*8 a(c,c), b(c,c)
8  a(1:d,1:d) = b(1:d,1:d)
9end
10