HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
ALLOCATABLE (statement and attribute)
Chapter 10274
ALLOCATABLE (statement and attribute)
Declares an allocatable array with deferred shape.
Syntax
The syntax of a type declaration statement with the ALLOCATABLE attribute is:
type
,
attrib-list
::
entity-list
type
is a valid type specification (INTEGER, REAL, LOGICAL, CHARACTER,
TYPE(
type-name
), etc.), as described in Chapter 5, “Data types and data
objects,” on page 105.
attrib-list
is a comma-separated list of attributes including ALLOCATABLE and
optionally those attributes compatible with it, namely:
entity-list
is a comma-separated list of entities. Each entity is of the form:
array-name
[(
deferred-shape-spec-list
)]
If (
deferred-shape-spec-list
) is omitted, it must be specified in
another declaration statement.
array-name
is the name of an array being given the attribute ALLOCATABLE.
deferred-shape-spec-list
is a comma-separated list of colons, each colon representing one dimension.
Thus the rank of the array is equal to the number of colons specified.
The syntax of the ALLOCATABLE statement is:
ALLOCATABLE [::]
array-name
[(
deferred-shape-spec-list
)]
[,
array-name
[(
deferred-shape-spec-list
)]]...
Table 10-2
DIMENSION PUBLIC TARGET
PRIVATE SAVE