blob: 1288ef50d422e4626b6d29d87acda3646ee6d3fb (
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 55297: [4.8 Regression] [OOP] type-bound operator clashes with abstract interface
!
! Contributed by Damian Rouson <damian@rouson.net>
module athlete_module
type athlete
contains
procedure :: negative
generic :: operator(-) => negative
end type
abstract interface
integer function sum_interface(this)
import athlete
class(athlete) this
end function
end interface
contains
integer function negative(this)
class(athlete) ,intent(in) :: this
end function
end module
|