3 ! Test the fixes for PR97723 and PR97694.
5 ! Contributed by Martin <mscfd@gmx.net>
14 function cssel(x
) result(s
)
15 character(len
=:), allocatable
:: s
16 class(*), dimension(..), optional
, intent(in
) :: x
20 s
= '0' ! PR97723: ‘assign’ at (1) is not a function
21 ! PR97694: ICE in trans-stmt.c(trans_associate_var)
23 s
= '1' ! PR97723: ‘assign’ at (1) is not a function
25 s
= '?' ! PR97723: ‘assign’ at (1) is not a function
34 program classstar_rank
39 real, dimension(1:3) :: y
40 logical, dimension(1:2,1:2) :: z
42 if (any ([cssel(x
),cssel(y
),cssel(z
),cssel()] .ne
. ['0','1','?','-'])) stop 1
44 end program classstar_rank