2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_deferred_1.f90
blob6e6dc52d0fdc318e0cbf6ade47e34984531591a7
1 ! { dg-do compile }
3 ! PR 46952: [OOP] Spurious "recursive call" error with type bound procedure
5 ! Contributed by Ian Harvey <ian_harvey@bigpond.com>
7 module m
9 type, abstract :: t
10 contains
11 procedure(inter), pass, deferred :: foo
12 end type
14 contains
16 subroutine inter(this)
17 class(t) :: this
18 call this%foo()
19 end subroutine inter
21 end module m
23 ! { dg-final { cleanup-modules "m" } }