PR middle-end/77674
[official-gcc.git] / gcc / testsuite / gfortran.dg / alloc_comp_initializer_3.f90
blob014b069e5788c51c5fad27fd5425ad6d573635bd
1 ! { dg-do compile }
3 ! PR fortran/50050
4 ! Out of bound whilst releasing initialization of allocate object
6 ! Contributed by someone <sigurdkn@gmail.com>
8 program bug
9 implicit none
10 type foo
11 integer, pointer :: a => null()
12 end type
13 type(foo), dimension(:,:), allocatable :: data
14 allocate(data(1:1,1)) ! This used to lead to an ICE
15 end program