3 ! This contains both testcases in the PR
5 ! Contributed by Tomas Trnka <trnka@scm.com>
8 module BogusPointerArgError
18 class(AType
), allocatable
:: x
21 call B (x
) ! Was an error here
25 class(AType
), intent(in
) :: y
29 class(AType
), intent(in
) :: z(:)
31 associate (xxx
=> z(1))
45 type, abstract
:: AType
47 generic
, public
:: assignment(=) => Assign
49 procedure
, private
:: Assign
54 subroutine Assign(lhs
, rhs
)
55 class(AType
), intent(inout
) :: lhs
56 class(AType
), intent(in
) :: rhs
63 module ICEGetDescriptorField
70 class(AType
), intent(in
) :: x(:)
72 class(AType
), allocatable
:: y
74 associate (xxx
=> x(1))
75 y
= xxx
! Was an ICE here
79 end module ICEGetDescriptorField