8 type(t
), parameter :: x0
= t([2]) ! { dg-error "shape of component" }
9 type(t
), parameter :: x1(2) = t([2]) ! { dg-error "shape of component" }
10 type(t
), parameter :: x(2) = t([integer::]) ! { dg-error "shape of component" }
16 type(u
), parameter :: z0(2) = u(1, [integer::]) ! valid
17 type(u
), parameter :: z1
= u(1, 2 ) ! valid
18 type(u
), parameter :: z2(2) = u(1, 2 ) ! valid
19 type(u
), parameter :: z3
= u(1, [2]) ! { dg-error "shape of component" }
20 type(u
), parameter :: z4(2) = u(1, [2]) ! { dg-error "shape of component" }
25 type(v
), parameter :: y0
= v(reshape([1,2],[2,1])) ! valid
26 type(v
), parameter :: y1
= v(reshape([1,2],[1,2])) ! { dg-error "shape of component" }
27 type(v
), parameter :: y(1) = v(reshape([1,2],[1,2])) ! { dg-error "shape of component" }
29 print *, x0
,x
,x1
,y0
,y1
,y
,z0
,z1
,z2
,z3
,z4