5 ! Contributed by Juergen Reuter.
10 ! if the following line is omitted, the problem disappears
11 integer, dimension(:), allocatable
:: a
14 type(container_t
) :: container
16 if (container
%n
/= 42) STOP 1
17 if (allocated(container
%a
)) STOP 2
19 allocate(container
%a(50))
21 if (container
%n
/= 42) STOP 3
22 if (allocated(container
%a
)) STOP 4
24 subroutine init (container
)
25 type(container_t
), intent(out
) :: container