1! { dg-do compile }
2!
3! PR fortran/56849
4!
5integer :: x(2,2),y(4)
6y = reshape([1,2,3,4],[4])
7x(:,1:1) = reshape(y(::2), [1,2], order=[1,2]) ! { dg-error "Different shape for array assignment at .1. on dimension 1 .2 and 1." }
8print *, y
9print *, x(:,1)
10end
11