FIX: Incorrect Result Initializing INTEGER*1 Array (72920)
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
This article was previously published under Q72920 SYMPTOMS
Programs compiled with Microsoft FORTRAN versions 4.0, 4.01, 4.1, 5.0,
and 5.1 that initialize an integer*1 array with negative values (that
is, -128 to -1), can give incorrect results when run under MS-DOS or
OS/2.
RESOLUTION
Adding an executable statement that uses an element of the array
within the DO-LOOP, or disabling loop optimization with /Od, /Odct, or
/4Yb when compiling, can prevent the problem from occurring.
STATUS
Microsoft has confirmed this to be a problem in FORTRAN versions 4.0,
4.01, 4.1, 5.0, and 5.1. This problem was corrected in FORTRAN
PowerStation.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbfix KB72920 |
---|
|