FIX: F1001: omf_ms.c, Line 1093, Variable Used Then Declared (51608)
The information in this article applies to:
- 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
This article was previously published under Q51608 SYMPTOMS
Compiling an application in OS/2 fails and a protection violation occurs.
An attempt to compile the same application in MS-DOS fails and the
compiler generates the appropriate message below. For FORTRAN version 5.1:
F1001 : Internal Compiler Error
(compiler file '@(#)omf_ms.c:1.119',line 1093)
For FORTRAN versions 4.1 and 5.0:
F1001 : Internal Compiler Error
(compiler file '@(#)omf_ms.c:1.118',line 1093)
CAUSE
The application contains an executable statement that refers to a variable
that is used later as a formal parameter in an ENTRY statement but not as a
formal argument in a SUBROUTINE statement. FORTRAN does not support this
practice.
RESOLUTION
To avoid this error, declare each variable used in an executable statement
as a formal argument in a SUBROUTINE statement.
STATUS
Microsoft has confirmed this to be a problem in FORTRAN versions 4.1, 5.0,
and 5.1. This problem was corrected in FORTRAN PowerStation, version 1.0.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbfix KB51608 |
---|
|