2 ! { dg-options "-fcheck=mem" }
4 ! Test the fix for PR99545, in which the allocate statements caused an ICE.
6 ! Contributed by Juergen Reuter <juergen.reuter@desy.de>
12 type, abstract
:: range_t
13 integer :: step_mode
= 0
17 type, extends (range_t
) :: range_int_t
21 type, extends (range_t
) :: range_real_t
27 class(range_t
), dimension(:), allocatable
:: range
29 procedure
:: compile
=> cmd_scan_compile
34 subroutine cmd_scan_compile (cmd
)
35 class(cmd_scan_t
), intent(inout
) :: cmd
36 allocate (range_int_t
:: cmd
%range (3))
37 allocate (range_real_t
:: cmd
%range (3))
38 end subroutine cmd_scan_compile