1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
! { dg-do compile } ! ! PR fortran/58356 ! ! Contributed by Andrew Benson ! module ct type :: cfl contains final :: cfld end type cfl type, extends(cfl) :: cfde contains end type cfde contains subroutine cfld(self) implicit none type(cfl), intent(inout) :: self return end subroutine cfld end module ct