Automatic objects
An automatic object is a local data object dynamically allocated within a subprogram
or a BLOCK
construct
. It can have a nonconstant character length, a nonconstant array bound, or both. An
automatic object is not a dummy argument.
An automatic object always has the controlled automatic storage class.
You cannot specify an automatic object in any of the following statements:
Also, automatic objects cannot have the AUTOMATIC, PARAMETER, SAVE, or STATIC attributes. You cannot initialize or define an automatic
object with a constant expression in a type declaration statement, but an automatic object
can have a default initialization. An automatic object must not
appear in the specification part of a main program, a module,
or a submodule
.
or a submodule
.