3 ! Test the fix for PR92976, in which the TYPE IS statement caused an ICE
4 ! because of the explicit bounds of 'x'.
6 ! Contributed by Gerhard Steinmetz <gscfq@t-online.de>
12 class(t
), allocatable
:: c(:)
13 allocate (c
, source
= [t(1111),t(2222),t(3333)])
15 if (sum (c
%i
) .ne
. 3333) stop 1
20 ! ICE as compiler attempted to assign descriptor to an array
23 ! Make sure that bounds are correctly translated.
27 subroutine counter (arg
)
29 if (size (arg
, 1) .ne
. 2) stop 2