3 ! Contributed by Karl Kaiser <kaiserkarl31@yahoo.com>
7 class(*), pointer :: ptr1
, ptr2(:)
8 integer, target
:: i
= 42
10 ! First with associate name and no selector in select types
12 select
type (c
) ! Segfault - vptr not set
19 ! Now do the same with the array version
21 select
type (d
=>c
) ! Segfault - vptr not set
29 ! And now with the associate name and selector
31 select
type (d
=> c
) ! Segfault - vptr not set
38 ! Now do the same with the array version
39 ! ptr2 => NULL() !This did not fix the problem
41 select
type (d
=> c
) ! Segfault - vptr not set
48 if (check
.ne
. 1111) stop 5