2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. index:: STORAGE_SIZE, storage size
10 STORAGE_SIZE --- Storage size in bits
11 *************************************
13 .. function:: STORAGE_SIZE(A , KIND)
15 Returns the storage size of argument :samp:`{A}` in bits.
18 Shall be a scalar or array of any type.
21 (Optional) shall be a scalar integer constant expression.
24 Fortran 2008 and later
30 .. code-block:: fortran
32 RESULT = STORAGE_SIZE(A [, KIND])
35 The result is a scalar integer with the kind type parameter specified by KIND
36 (or default integer type if KIND is missing). The result value is the size
37 expressed in bits for an element of an array that has the dynamic type and type