PRB: F2836: "statement out of order" with PARAMETER (49976)
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 MS-DOS 5.1
- Microsoft FORTRAN compiler for OS/2 4.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
- Microsoft FORTRAN PowerStation for MS-DOS 1.0
- Microsoft FORTRAN PowerStation for MS-DOS 1.0a
- Microsoft Fortran Powerstation 32 for Windows NT 1.0
- Microsoft Fortran Powerstation 32 for Windows NT 4.0
This article was previously published under Q49976 SYMPTOMS
Compiling an application that contains the PARAMETER statement, but not the
required parenthese causes the compiler to generate the following message:
F2836: statement out of order
In addition, "error F4999: variable declared but not used" may be
generated.
Or for Fortran PowerStation 32, version 4.0:
warning FOR4265: symbol referenced but not set
RESOLUTION
To address this problem, modify the source code to place the parentheses on
each PARAMETER statement.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kberrmsg kbLangFortran KB49976 |
---|
|