[Dwarf-Discuss] Can Fortran array type be shared?
Kendrick Wong
kendrick@ca.ibm.com
Mon Nov 1 18:11:58 GMT 2010
In the Appendix D.2.1 Fortran 90 example:
type array_ptr
real :: myvar
real, dimension (:), pointer :: ap
end type array_ptr
type(array_ptr), allocatable, dimension(:) :: arrays
'arrays' has a DW_TAG_array_type as below:
6$: DW_TAG_array_type
! No name, default (Fortran) ordering, default stride
DW_AT_type(reference to 3$)
DW_AT_allocated(...)
DW_AT_data_location(...)
...
If the example has:
type(array_ptr), pointer, dimension(:) :: arrayptrs
Does it make sense to reuse 6$ with an additiional DW_AT_associated
attribute, or is the correct thing to create another DW_TAG_array_type?
Kendrick Wong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/private.cgi/dwarf-discuss-dwarfstd.org/attachments/20101101/0f33825c/attachment.htm>
More information about the Dwarf-discuss
mailing list