3 ! PR 57639: [OOP] ICE with polymorphism (and illegal code)
5 ! Contributed by Walter Spector <w6ws@earthlink.net>
9 class(*) :: t1
, t2
! { dg-error "must be dummy, allocatable or pointer" }
11 print *, 'main: compare = ', compare (t1
, t2
)
12 print *, SAME_TYPE_AS (t1
, t2
)
16 logical function compare (a
, b
)
17 class(*), intent(in
), allocatable
:: a
, b