2 ! { dg-options "-fcoarray=single" }
3 ! Test the fix for PR55172.
5 ! Contributed by Arjen Markus <arjen.markus@deltares.nl>
11 class(ncb), allocatable, dimension(:) :: cb
14 integer function name(self)
16 class (tn), intent(in) :: self
17 select type (component => self%cb(i)) ! { dg-error "has no IMPLICIT type" }
22 ! Further issues, raised by Tobias Burnus in the course of fixing the PR
28 class(ncb1), allocatable, dimension(:) :: cb
31 integer function name(self)
33 class (tn1), intent(in) :: self
34 select type (component => self%cb([4,7+1])) ! { dg-error "needs a temporary" }
43 class(ncb2), allocatable :: cb[:]
46 integer function name(self)
48 class (tn2), intent(in) :: self
49 select type (component => self%cb[4]) ! { dg-error "must not be coindexed" }