Allocatable attribute on derived type components



Hi,

The F003 standard introduced allocatable attribute on derived type
components. The component with allocatable attribute has to be
allocated seperately using allocatable statment.

However, I could not understand the memory layout of the object of such
derived type object.

For example, consider the following

type drv
integer :: x(10)
real , allocatable :: y(:, :)
end type drv

and then an object obj is defined.

type (drv) :: obj

Can any one help me to understand the memory layout of "obj"? What
would be the size of obj?

Also, what would be the memory layout in case if the derived type is
sequenced?


Thanks
Gaurav

.