BUG: Nested Loops and FAR Arrays Produce Incorrect Results (70280)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
This article was previously published under Q70280 SYMPTOMS
Compiling a program that uses nested loops and FAR arrays causes one of the
following run-time problems:
- Incorrect results
-or-
- Protection violation
-or-
- Run-time error R6001 - null pointer assignment
-or-
- Run-time error F6207: WRITE(CON) - I edit descriptor expected for
INTEGER
Note: A FAR array is defined as any array with a FAR attribute, any
array greater than 32K compiled without the /Gt switch, or any array
larger than the value set by the /Gt switch.
RESOLUTION
Possible solutions include
- Compile with /Od to turn loop optimization off (/Odct /Gs may also be
used to retain some optimization)
-or-
- Use the NEAR attribute on the array accessed within the inside loop.
STATUS
Microsoft has confirmed this to be a bug in the products listed above.
This is not an issue with FORTRAN PowerStation, since FAR is not a
supported attribute.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | KB70280 |
---|
|