ENUMERATOR statement
Standard: F77 F90 F95 F2003
  Example Program
ENUMERATOR [ :: ] enum-decl [ , enum-decl ]...

enum-decl ::= name [ = expression ]

If any expression appears, the double colon (::) is required. The expression must be a scalar integer constant expression.

The ENUMERATOR statement appears only in an enumeration, which has the syntax

        [ enumerator-stmt ]...

An enumeration defines a set of named constants of type Integer, all with the same kind; this is used to interoperate with a C enumeration, and the kind is chosen to be the same as the one used by the C compiler for a corresponding “enum” definition.

Each enum-decl specifies the name and value of one of the named constants. If the expression is provided the value is that of the expression; otherwise the value is zero if it is the first enum-decl in the enumeration, or one more than the last enum-decl value.
BIND attribute, END ENUM statement, ENUM statement