2 ! PR 96386 - this used to cause an ICE.
3 ! Test case by Menno Deij - van Rijswijk.
13 TYPE (Level3
), ALLOCATABLE
:: levels3(:)
19 TYPE (Level2
), ALLOCATABLE
:: levels2(:)
24 TYPE (Level1
), ALLOCATABLE
:: levels1(:)
27 TYPE(outer_type
), TARGET
:: outer
31 SUBROUTINE internal_compiler_error_repro()
35 ASSOCIATE(l1
=> outer
%levels1
) ! <-- this gives an ICE
36 !ASSOCIATE(l1 => outer%levels1(:) ) ! <-- No ICE if array spec is added
38 ASSOCIATE(l2
=> l1(F
)%levels2
)
39 DO B
=1,l2(F
)%nLevel3
! <-- condition for ICE to be triggered
46 END SUBROUTINE internal_compiler_error_repro