17 pure subroutine foo(x)
18 type(t), target, intent(in) :: x
22 ! The following gave an ICE but is valid:
23 y = t2(x) ! Note: F2003, C1272 (3) and (4) do not apply
25 ! Variant which is invalid as C1272 (3) applies
26 z = t3(x) ! { dg-error "Invalid expression in the structure constructor" }
30 ! { dg-final { cleanup-modules "m" } }