blob: 2519ab09416bce548c142ca3f6e7b22be0c8c403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
! { dg-do compile }
!
! PR 44434: [OOP] ICE in in gfc_add_component_ref
!
! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
module foo_mod
type foo
contains
procedure :: doit
generic :: do => doit
end type
contains
subroutine doit(a)
class(foo) :: a
end subroutine
end module
program testd15
contains
subroutine dodo(x)
use foo_mod
class(foo) :: x
call x%do()
end subroutine
end
! { dg-final { cleanup-modules "foo_mod" } }
|