I'm probing the extent to which a structure constructor is able
to define an allocatable polymorphic component. 4.5.10p6 suggests
(to me) that this is allowed, but this is causing compiler segfaults
with the several compilers I've tried, so I'm pretty uncertain
whether what I'm doing is legal or not. Using the types
type :: S
! ...
end type
type(S) :: Sobj
type :: T
class(S), allocatable :: value
end type
type :: U
class(*), allocatable :: value
end type
Are the following valid constructor expressions?
T(Sobj), U(Sobj), U(1)
Or with a dummy argument
class(*), intent(in) :: value
is U(value) valid?
Thanks,
Neil
|