FIX: F2836: Statement Out of Order Error From ENTRY Statement (69188)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 4.0
- Microsoft FORTRAN Compiler for MS-DOS 4.01
- Microsoft FORTRAN Compiler for MS-DOS 4.1
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN compiler for OS/2 4.1
- Microsoft FORTRAN compiler for OS/2 5.0
This article was previously published under Q69188 SYMPTOMS
Compiling an application that has an ENTRY statement that precedes a
specification statement, type statement, implicit statement, or a parameter
statement causes the compiler to generate one of the following error:
F2836: Statement Out of Order
If the ENTRY statement precedes a statement function statement, the error
generated is:
F2515: left side of assignment illegal
If the ENTRY statement precedes the $LARGE or $NOTLARGE metacommand, the
errors generated are:
F2021: $LARGE illegal in executable statements
F2021: $NOTLARGE illegal in executable statements
RESOLUTION
To work around this problem, modify the source code to place the ENTRY
statement after specification statements, type statements, implicit
statements, parameter statements, statement function statements, and the
$LARGE and $NOTLARGE metacommands.
STATUS
Microsoft has confirmed this to be a problem in FORTRAN versions 4.0, 4.01,
4.1, and 5.0. This problem was corrected in FORTRAN version 5.1.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbfix KB69188 |
---|
|