annotate gcc/testsuite/gfortran.dg/class_22.f03 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! PR 44212: [OOP] ICE when defining a pointer component before defining the class and calling a TBP then
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Hans-Werner Boschmann <boschmann@tp1.physik.uni-siegen.de>
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 module ice_module
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 type :: B_type
kono
parents:
diff changeset
10 class(A_type),pointer :: A_comp
kono
parents:
diff changeset
11 end type B_type
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 type :: A_type
kono
parents:
diff changeset
14 contains
kono
parents:
diff changeset
15 procedure :: A_proc
kono
parents:
diff changeset
16 end type A_type
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 contains
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 subroutine A_proc(this)
kono
parents:
diff changeset
21 class(A_type),target,intent(inout) :: this
kono
parents:
diff changeset
22 end subroutine A_proc
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 subroutine ice_proc(this)
kono
parents:
diff changeset
25 class(A_type) :: this
kono
parents:
diff changeset
26 call this%A_proc()
kono
parents:
diff changeset
27 end subroutine ice_proc
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 end module ice_module