blob: d62d8326dd7ae47aa95d460732846bfc82517e42 (
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
|
! { dg-do compile }
!
! PR 70601: [5/6/7 Regression] [OOP] ICE on procedure pointer component call
!
! Contributed by zmi <zmi007@gmail.com>
program test
implicit none
type :: concrete_type
procedure (run_concrete_type), pointer :: run
end type
type(concrete_type), allocatable :: concrete
allocate(concrete)
concrete % run => run_concrete_type
call concrete % run()
contains
subroutine run_concrete_type(this)
class(concrete_type) :: this
end subroutine
end
|