Cf. F2008:
   13.7.160 STORAGE SIZE (A [, KIND])

   Description. Storage size in bits.
   Class. Inquiry function.
   Arguments.
     A   shall be a scalar or array of any type. If it is polymorphic it shall
         not be an undefined pointer. If it has any deferred type parameters it
         shall not be an unallocated allocatable variable or a disassociated
         or undefined pointer.
    KIND (optional) shall be a scalar integer constant expression.


Similarly to C_SIZEOF, but returns always the size for a scalar and supports
dynamic types. Additionally, (C_)SIZEOF return the size in bytes, storage_size
in bits.


-- 
           Summary: [OOP] F2008: storage_size intrinsic (also working for
                    polymorphic types)
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44649

Reply via email to