FIX: Incorrect Results Using Array Element in IBSET Function (72490)
The information in this article applies to:
- 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
This article was previously published under Q72490 SYMPTOMS
An application provides incorrect results. When the application is compiled
with Microsoft FORTRAN version 4.0 for MS-DOS, it provides correct results.
CAUSE
The application stores an array in a COMMON block. The application uses as
an array subscript a variable that is the first argument to the IBSET
intrinsic function. The application assigns to that element the value
returned from the IBSET intrinsic function.
RESOLUTION
To work around this problem, perform one of the following three steps:
- Modify the source code to assign the array element to a
temporary variable and specify the variable in the IBSET
intrinsic function.
-or-
- Specify the /Od or /4Yb compiler option switch to disable loop
optimization.
-or-
- Modify the source code to place an executable statement between
the calls to the IBSET intrinsic function.
STATUS
Microsoft has confirmed this to be a problem in FORTRAN versions 4.01, 4.1,
5.0, and 5.1 for MS-DOS and versions 4.1, 5.0, and 5.1 for OS/2. This
problem was corrected in FORTRAN PowerStation, version 1.0.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbfix KB72490 |
---|
|