annotate gcc/testsuite/gfortran.dg/associated_6.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! PR 54881: [4.8 Regression] [OOP] ICE in fold_convert_loc, at fold-const.c:2016
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Richard L Lozes <richard@lozestech.com>
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 implicit none
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 type treeNode
kono
parents:
diff changeset
10 type(treeNode), pointer :: right => null()
kono
parents:
diff changeset
11 end type
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 type(treeNode) :: n
kono
parents:
diff changeset
14
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
15 if (associated(RightOf(n))) STOP 1
111
kono
parents:
diff changeset
16 allocate(n%right)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
17 if (.not.associated(RightOf(n))) STOP 2
111
kono
parents:
diff changeset
18 deallocate(n%right)
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 contains
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 function RightOf (theNode)
kono
parents:
diff changeset
23 class(treeNode), pointer :: RightOf
kono
parents:
diff changeset
24 type(treeNode), intent(in) :: theNode
kono
parents:
diff changeset
25 RightOf => theNode%right
kono
parents:
diff changeset
26 end function
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 end