HP 3000 Manuals

Compile-Time Errors [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

Compile-Time Errors 

A compile-time error is one detected by the compiler.  There are two
types of compile-time errors:

   *   Those that can be attributed to a specific source statement.

   *   Those that can be detected only after processing of an entire
       module.

1          COMPILE-TIME    I/O control parameter expected
           ERROR

         CAUSE           An unrecognized word was found where an I/O
                         control keyword is required.

2          COMPILE-TIME    Expecting operator
           ERROR

         CAUSE           An operator is missing.

3          COMPILE-TIME    String expected
           ERROR

         CAUSE           A string expression in the syntax is missing.

4          COMPILE-TIME    "/" expected
           ERROR

         CAUSE           A "/" is missing.

5          COMPILE-TIME    "-" expected
           ERROR

         CAUSE           A "-" is missing.

6          COMPILE-TIME    Integer or string expected
           ERROR

         CAUSE           An integer or a string expression is missing.

8          COMPILE-TIME    Integer expected
           ERROR

         CAUSE           An integer item is missing where it is required.

11         COMPILE-TIME    Expecting expression or subexpression
           ERROR

         CAUSE           An expression is missing where it is required.

12         COMPILE-TIME    Logical end of statement already encountered
           ERROR

         CAUSE           More input is found in the input line after the
                         logical end of a statement.

13         COMPILE-TIME    Unrecognizable statement
           ERROR

         CAUSE           The input line is not a legal FORTRAN statement.

14         COMPILE-TIME    "THEN" expected
           ERROR

         CAUSE           The "THEN" keyword is missing in an IF-THEN
                         statement.

15         COMPILE-TIME    "," or ")" expected
           ERROR

         CAUSE           A "," or a ")" is missing where it is required.

16         COMPILE-TIME    "," expected
           ERROR

         CAUSE           A "," is missing where it is required.

17         COMPILE-TIME    "(" or "=" expected
           ERROR

         CAUSE           A "(" or "=" is missing where it is required.

18         COMPILE-TIME    ")" expected
           ERROR

         CAUSE           The number of opening and closing parentheses is
                         unbalanced.

19         COMPILE-TIME    "(" expected
           ERROR

         CAUSE           The number of opening and closing parentheses is
                         unbalanced.

20         COMPILE-TIME    "=" expected
           ERROR

         CAUSE           A "=" is missing where it is required.

21         COMPILE-TIME    Value expected
           ERROR

         CAUSE           An expression or subexpression is missing.

22         COMPILE-TIME    Integer expression expected
           ERROR

         CAUSE           An integer expression is missing where it is
                         required.

23         COMPILE-TIME    Identifier expected
           ERROR

         CAUSE           An identifier is missing where it is required.

25         COMPILE-TIME    "TO" expected
           ERROR

         CAUSE           The keyword "TO" is missing.

26         COMPILE-TIME    "DS" expected
           ERROR

         CAUSE

28         COMPILE-TIME    Expecting I/O control list or unit specifier
           ERROR

         CAUSE           There is no I/O control list or unit specifier
                         in an I/O statement.

29         COMPILE-TIME    Expecting format specifier
           ERROR

         CAUSE           The format specifier in a formatted I/O
                         statement is missing.

30         COMPILE-TIME    Label, statement, or "THEN" expected
           ERROR

         CAUSE

31         COMPILE-TIME    "DO", "IF", or "WHILE" expected
           ERROR

         CAUSE           The keyword "DO", "IF", or "WHILE" is expected.

32         COMPILE-TIME    Label or control variable expected
           ERROR

         CAUSE

33         COMPILE-TIME    "IF" expected
           ERROR

         CAUSE           The keyword "IF" is missing.

34         COMPILE-TIME    Expecting I/O control list or format specifier
           ERROR

         CAUSE

35         COMPILE-TIME    Expecting identifier, "(", or label
           ERROR

         CAUSE

36         COMPILE-TIME    Expecting ":"
           ERROR

         CAUSE           A ":" is missing where it is required.

37         COMPILE-TIME    Label expected
           ERROR

         CAUSE

38         COMPILE-TIME    "DO" expected
           ERROR

         CAUSE           The keyword "DO" is missing.

39         COMPILE-TIME    Bad expression
           ERROR

         CAUSE

40         COMPILE-TIME    "FUNCTION" or identifier expected
           ERROR

         CAUSE

41         COMPILE-TIME    Expecting identifier or "("
           ERROR

         CAUSE

42         COMPILE-TIME    Expecting length specification
           ERROR

         CAUSE

44         COMPILE-TIME    Expecting a type
           ERROR

         CAUSE

46         COMPILE-TIME    "," or "/" expected
           ERROR

         CAUSE           A "," or "/" is missing where it is expected.

48         COMPILE-TIME    Expecting identifier or "/"
           ERROR

         CAUSE

49         COMPILE-TIME    Expecting identifier or ","
           ERROR

         CAUSE

50         COMPILE-TIME    Expecting letter
           ERROR

         CAUSE

51         COMPILE-TIME    Expecting constant
           ERROR

         CAUSE           A constant expression is missing.

60         COMPILE-TIME    "ON" condition expected
           ERROR

         CAUSE

61         COMPILE-TIME    "CALL" or "ABORT" expected
           ERROR

         CAUSE

101        COMPILE-TIME    Routine or array name used illegally
           ERROR

         CAUSE           Some unqualified identifiers (for example,
                         subprogram or array names) can be used only as
                         actual arguments.  This error is issued when one
                         of these identifiers is used as other than an
                         actual argument.

102        COMPILE-TIME    Constant expression required
           ERROR

         CAUSE           An expression that must be constant (evaluated
                         at compile time) using literals and named
                         constants cannot be evaluated, either because a
                         term is not constant or an operation (for
                         example, a function call) cannot be performed.

103        COMPILE-TIME    Variable, array element, or substring name
           ERROR         expected

         CAUSE           An assignable variable reference is expected but
                         a nonassignable expression is encountered.

104        COMPILE-TIME    Numeric expression required
           ERROR

         CAUSE           The expression cannot be of type logical or
                         character.

105        COMPILE-TIME    Integer expression required
           ERROR

         CAUSE           The expression must be of type integer.

106        COMPILE-TIME    Integer variable required
           ERROR

         CAUSE           An assignable integer variable reference (for
                         example, one assignable as an I/O parameter) is
                         required.

107        COMPILE-TIME    Complex expression not allowed
           ERROR

         CAUSE

108        COMPILE-TIME    Logical expression required
           ERROR

         CAUSE

109        COMPILE-TIME    Character expression required
           ERROR

         CAUSE

110        COMPILE-TIME    Types of operands incompatible with operator
           ERROR         and/or each other

         CAUSE           The type conversions that permit the operation
                         to occur cannot be performed.  Either the
                         operands are not compatible with each other, or
                         one or more are not compatible with the
                         operator.

111        COMPILE-TIME    Left-hand and right-hand sides are not
           ERROR         assignment compatible

         CAUSE           Where an assignment must be performed, the value
                         of the expression to be assigned cannot be
                         converted into the type of the variable
                         necessary for assignment.

112        COMPILE-TIME    Illegal or inconsistent type for routine
           ERROR

         CAUSE           A FUNCTION or ENTRY statement has a bad type.
                         This error is usually caused by a mismatch
                         between the types of entries into a subprogram.

113        COMPILE-TIME    Duplicate declaration or definition
           ERROR

         CAUSE           An identifier or some attribute of an identifier
                         (for example, type) is multiply defined.

114        COMPILE-TIME    Array not declared
           ERROR

         CAUSE           An identifier used as an array is not declared
                         as such.

115        COMPILE-TIME    This statement not allowed in this kind of
           ERROR         module

         CAUSE              1.  A RETURN statement appears in a program
                                module.

                            2.  An executable statement appears in a
                                block data module.

116        COMPILE-TIME    Program, block data, or common block name used
           ERROR         illegally

         CAUSE

117        COMPILE-TIME    Constant name used illegally
           ERROR

         CAUSE

118        COMPILE-TIME    Illegal or inconsistent use of routine name
           ERROR

         CAUSE              1.  An intrinsic function is used as a
                                subroutine, or an intrinsic subroutine as
                                a function.

                            2.  An unrecognized routine name is declared
                                intrinsic.

                            3.  A routine used as an actual argument is
                                not declared intrinsic or external.

119        COMPILE-TIME    Illegal to use argument here
           ERROR

         CAUSE

120        COMPILE-TIME    Illegal use of label
           ERROR

         CAUSE              1.  A label is inconsistently used.  (The
                                three types of labels - for formats,
                                executable statements, and nonexecutable
                                statements - are mutually exclusive in
                                usage.)

                            2.  A label is referenced but never defined.

121        COMPILE-TIME    Illegal label name
           ERROR

         CAUSE

122        COMPILE-TIME    Illegal module or entry name
           ERROR

         CAUSE           A module or entry name is either illegal or
                         previously declared as something else.

123        COMPILE-TIME    Referenced identifier is not a function or
           ERROR         array

         CAUSE

124        COMPILE-TIME    Subroutine or function name expected
           ERROR

         CAUSE           An identifier not representing a subprogram name
                         is declared external or intrinsic.

125        COMPILE-TIME    Illegal statement function name
           ERROR

         CAUSE

126        COMPILE-TIME    Number of subscripts does not match declared
           ERROR         number

         CAUSE

127        COMPILE-TIME    Number of parameters does not match declared
           ERROR         number

         CAUSE           The declared number of parameters to a statement
                         function does not match the number used.

128        COMPILE-TIME    Illegal or inconsistent alternate return
           ERROR

         CAUSE              1.  Alternate returns are declared in a
                                program unit, where they are illegal
                                (they are allowed only in subroutines and
                                entries within subroutines).

                            2.  A return statement with an alternate
                                return value is found within a program
                                unit in which alternate returns are
                                illegal.

129        COMPILE-TIME    Illegal operator
           ERROR

         CAUSE

130        COMPILE-TIME    Illegal or duplicate argument
           ERROR

         CAUSE           A formal argument in a program, subprogram, or
                         entry statement either appears more than once or
                         is previously defined.

131        COMPILE-TIME    Illegal or duplicate SAVE statement
           ERROR

         CAUSE              1.  A formal argument or variable in common
                                is saved.

                            2.  A variable is saved more than once.

                            3.  A SAVE statement saving all variables is
                                encountered with SAVE statements saving
                                individual variables.

132        COMPILE-TIME    Illegal or duplicate COMMON definition
           ERROR

         CAUSE              1.  An identifier not representing a variable
                                is placed in a common block.

                            2.  A variable is declared to be in common
                                more than once.

                            3.  A formal argument or saved variable is
                                placed in common.

133        COMPILE-TIME    Illegal length in type statement
           ERROR

         CAUSE           A length field is attached to a simple type
                         forming an unsupported or illegal type.

134        COMPILE-TIME    Structure no declared
           ERROR

         CAUSE           A reference to an undeclared structure in a
                         RECORD statement.

135        COMPILE-TIME    Recursive structure declaration
           ERROR

         CAUSE           A reference was made to a structure inside
                         itself.

136        COMPILE-TIME    Illegal or duplicate IMPLICIT declaration
           ERROR

         CAUSE              1.  In an IMPLICIT statement, an illegal
                                prefix character (that is, not a through
                                z or A through Z) is encountered.

                            2.  A prefix character is declared implicit
                                more than once.

                            3.  IMPLICIT NONE is encountered with other
                                IMPLICIT specifications.

137        COMPILE-TIME    Identifier not declared
           ERROR

         CAUSE           An identifier does not appear in a type
                         statement when IMPLICIT NONE is specified.

138        COMPILE-TIME    Illegal or inconsistent EQUIVALENCE statement
           ERROR

         CAUSE              1.  A formal parameter or a dynamic array is
                                equivalenced using the EQUIVALENCE
                                statement.

                            2.  An identifier not representing a variable
                                is equivalenced using the EQUIVALENCE
                                statement.

                            3.  A variable is illegally equivalenced to
                                more than one position.

                            4.  A variable is forced to be misaligned
                                with the current EQUIVALENCE statement.

139        COMPILE-TIME    Illegal literal
           ERROR

         CAUSE

140        COMPILE-TIME    Illegal DO termination statement
           ERROR

         CAUSE           A statement not allowed as the last statement in
                         a DO loop is used as such.

141        COMPILE-TIME    Illegal control flow - transfer into block
           ERROR

         CAUSE

143        COMPILE-TIME    Missing label on FORMAT statement
           ERROR

         CAUSE           A FORMAT statement is used without a label.

144        COMPILE-TIME    Illegal array declaration
           ERROR

         CAUSE              1.  A calculated dimension size has
                                overflowed the word size of the machine.

                            2.  A zero or negative dimension size has
                                been declared.

                            3.  A nonconstant array dimension is
                                improperly specified.

145        COMPILE-TIME    No result assigned to function
           ERROR

         CAUSE           There is no assignment of any value to the
                         function result.

146        COMPILE-TIME    Missing FORMAT statement
           ERROR

         CAUSE

147        COMPILE-TIME    Illegal initialization
           ERROR

         CAUSE              1.  variable is initialized in a program unit
                                in which initialization is not permitted.

                            2.  A data value is not constant.

                            3.  A subscript or substring expression in a
                                DATA statement is not constant.

148        COMPILE-TIME    Subscript out of range
           ERROR

         CAUSE

149        COMPILE-TIME    Illegal assignment to DO index
           ERROR

         CAUSE

150        COMPILE-TIME    Illegal implied DO expression
           ERROR

         CAUSE

151        COMPILE-TIME    Duplicate label definition
           ERROR

         CAUSE

152        COMPILE-TIME    Declaration of routine as both EXTERNAL and
           ERROR         INTRINSIC

         CAUSE

153        COMPILE-TIME    Inconsistent parameter type
           ERROR

         CAUSE           A parameter identifier and the expression to be
                         assigned to it are not assignment compatible.

154        COMPILE-TIME    Illegal parameter in option
           ERROR

         CAUSE

155        COMPILE-TIME    Illegal use of string whose length is unknown
           ERROR

         CAUSE

156        COMPILE-TIME    Illegal STOP or PAUSE value
           ERROR

         CAUSE           The value to be written by a STOP or PAUSE
                         statement is not an integer or character
                         literal.

157        COMPILE-TIME    Incompatible types
           ERROR

         CAUSE

158        COMPILE-TIME    Duplicate initialization
           ERROR

         CAUSE           A variable is initialized more than once with
                         DATA statements or in type declaration
                         statements.

159        COMPILE-TIME    Illegal number and/or types of arguments to
           ERROR         intrinsic function

         CAUSE           The number or types of arguments to an intrinsic
                         routine are incompatible with the routine or
                         each other (they must all be of the same type).

160        COMPILE-TIME    Illegal use of intrinsic function as actual
           ERROR         argument

         CAUSE           A generic intrinsic routine name is passed as an
                         actual argument to a subprogram.

161        COMPILE-TIME    Named constant typed following definition in
           ERROR         PARAMETER statement

         CAUSE

162        COMPILE-TIME    Illegal use of Hollerith or octal or
           ERROR         hexadecimal constant

         CAUSE           A disallowed operation is attempted on a
                         Hollerith, octal, or hexadecimal constant.

163        COMPILE-TIME    Assigned GOTO on wrong type
           ERROR

         CAUSE           The assigned variable is not of type INTEGER*4.

164        COMPILE-TIME    ASSIGN statement: bad type or unreferenced
           ERROR         label

         CAUSE              1.  The assigned variable not of type
                                INTEGER*4.

                            2.  The label being assigned is attached to a
                                nonexecutable statement.

165        COMPILE-TIME    Illegal typing of identifier
           ERROR

         CAUSE           An attempt is made to type an identifier
                         representing an entity that cannot be typed (for
                         example, a subroutine name or a program name).

166        COMPILE-TIME    Expression does not represent a value
           ERROR

         CAUSE           An expression (such as an array name, external
                         routine name, or intrinsic function name),
                         although valid as an actual argument, does not
                         represent a single value and is therefore
                         meaningless in this context.  Parameterless
                         function calls without empty parentheses, (),
                         can also cause this error.

168        COMPILE-TIME    System intrinsic name not found in system
           ERROR         intrinsic file

         CAUSE

169        COMPILE-TIME    Invalid system intrinsic name
           ERROR

         CAUSE

170        COMPILE-TIME    Result type of function not compatible with
           ERROR         system intrinsic definition

         CAUSE           The user-specified function type is incompatible
                         with the type in the system intrinsic
                         definition.

171        COMPILE-TIME    This type of parameter not allowed in a system
           ERROR         intrinsic call

         CAUSE

172        COMPILE-TIME    Null parameter not permitted here
           ERROR

         CAUSE           A null parameter is passed to a system intrinsic
                         that is not OPTION VARIABLE.

173        COMPILE-TIME    This system intrinsic cannot be called by
           ERROR         FORTRAN routines

         CAUSE           The system intrinsic procedure contains formal
                         parameters that cannot be folded to any FORTRAN
                         data type.

174        COMPILE-TIME    PROCEDURE or FUNCTION call not compatible with
           ERROR         system intrinsic definition

         CAUSE           A procedure call is made to a system intrinsic
                         that expects a function call, or a function call
                         is made to a system intrinsic that expects a
                         procedure call.

175        COMPILE-TIME    PROGRAM parameter must be INTEGER*4 or
           ERROR         CHARACTER*(*) value

         CAUSE           The program parameter on a HP 3000 system is
                         declared explicitly or typed implicitly with a
                         type other than INTEGER*4 or CHARACTER*(*).

176        COMPILE-TIME    Illegal namelist group name
           ERROR

         CAUSE

177        COMPILE-TIME    Illegal identifier in namelist group
           ERROR

         CAUSE

178        COMPILE-TIME    Dummy arguments not allowed in namelist
           ERROR

         CAUSE

179        COMPILE-TIME    Number of parameters not compatible with
           ERROR         system intrinsic definition

         CAUSE

180        COMPILE-TIME    This statement not part of HP standard FORTRAN
           ERROR         77

         CAUSE           This statement is not available on all
                         implementations of HP FORTRAN 77.

181        COMPILE-TIME    IGNORE option not allowed with ON statement on
           ERROR         this operating system

         CAUSE



MPE/iX 5.0 Documentation