(j3.2006) Storage_size ??

Bill Long longb
Fri Jul 26 13:43:23 EDT 2013

suppose I have

Type :: x (M)

    Integer,len:: M

    Integer:: array(M,M)



What is returned by STORAGE_SIZE(xx) ?

Option 1: The size of a dope vector (since the implementation always 
allocates components sized by type parameters on the heap, hence 
represented by a dv).

Option 2: The size of one integer (m) + 16 * size of an integer = 17*4 . 
  (Even though this has no relationship to the contiguous memory layout 
of xx.)

Option 3: Storage_size should not be applicable for parameterized 
derived types. This is an oversight in the standard.


Bill Long                                           longb at cray.com
Fortran Technical Support    &                 voice: 651-605-9024
Bioinformatics Software Development            fax:   651-605-9142
Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101

More information about the J3 mailing list