PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / pointer_comp_init_1.f90
blob5738de6c9fcac8c1e9f76f1a7e1b441f43175643
1 ! { dg-do compile }
3 ! PR fortran/50050
4 ! ICE whilst trying to access NULL shape.
6 ! Reduced from the FoX library http://www1.gly.bris.ac.uk/~walker/FoX/
7 ! Contributed by Andrew Benson <abenson@its.caltech.edu>
9 module m_common_attrs
10 implicit none
12 type dict_item
13 end type dict_item
15 type dict_item_ptr
16 type(dict_item), pointer :: d => null()
17 end type dict_item_ptr
19 contains
21 subroutine add_item_to_dict()
22 type(dict_item_ptr), pointer :: tempList(:)
23 integer :: n
25 allocate(tempList(0:n+1))
26 end subroutine add_item_to_dict
28 end module m_common_attrs