URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [typebound_generic_10.f03] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
!
! PR 49196: [OOP] gfortran compiles invalid generic TBP: dummy arguments are type compatible
!
! Contributed by Hans-Werner Boschmann <boschmann@tp1.physik.uni-siegen.de>
module generic
type :: a_type
contains
procedure :: a_subroutine
end type a_type
type,extends(a_type) :: b_type
contains
procedure :: b_subroutine
generic :: g_sub => a_subroutine,b_subroutine ! { dg-error "are ambiguous" }
end type b_type
contains
subroutine a_subroutine(this)
class(a_type)::this
end subroutine a_subroutine
subroutine b_subroutine(this)
class(b_type)::this
end subroutine b_subroutine
end module generic
! { dg-final { cleanup-modules "generic" } }
Go to most recent revision | Compare with Previous | Blame | View Log