aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/typebound_deferred_1.f90
blob: 6e6dc52d0fdc318e0cbf6ade47e34984531591a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do compile }
!
! PR 46952: [OOP] Spurious "recursive call" error with type bound procedure
!
! Contributed by Ian Harvey <ian_harvey@bigpond.com>

module m

  type, abstract :: t
  contains
    procedure(inter), pass, deferred :: foo
  end type

contains

  subroutine inter(this)
    class(t) :: this
    call this%foo()
  end subroutine inter

end module m 

! { dg-final { cleanup-modules "m" } }