2 ! PR 66680: ICE with openmp, a loop and a type bound procedure
3 ! Contributed by Miha Polajnar <polajnar.miha@gmail.com>
13 pure
subroutine s1(self
,p
,esta
)
14 class(t1
), intent(in
) :: self
15 integer, optional
, intent(in
) :: p
16 integer, intent(out
) :: esta
22 type(t1
), allocatable
:: test(:)
24 pure
subroutine s2(test1
,esta
)
25 type(t1
), intent(in
) :: test1
26 integer, intent(out
) :: esta
29 i
= p
! using i instead of p works
30 call test1
%s(p
=p
,esta
=esta
)
31 if ( esta
/= 0 ) return