blob: 71862818951871eb9a38e5df087c897d947864aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
! { dg-do run }
!
! PR 46838: [OOP] Initialization of polymorphic allocatable components
!
! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
program bug28
implicit none
type indx_map
end type
type desc_type
integer, allocatable :: matrix_data
class(indx_map), allocatable :: indxmap
end type
type(desc_type) :: desc_a
call cdall(desc_a)
contains
subroutine cdall(desc)
type(desc_type), intent(out) :: desc
if (allocated(desc%indxmap)) call abort()
end subroutine cdall
end program
|