FIX: Combining -4Yb with -Ox May Cause Invalid Run-Time Errors (110002)
The information in this article applies to:
- 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
This article was previously published under Q110002 SYMPTOMS
On some rare boundary cases, using optimizations (-Ox) with extended error
handling ($DEBUG or -4Yb) can cause invalid run-time errors to be output,
such as:
run-time error F6096: $DEBUG
- array subscript expression out of range
RESOLUTION
If you have determined that a run-time error such as the above is not
correct for the code indicated, you can prevent your program from
terminating with the error. To do this, place a $NODEBUG metacommand before
the line of code that is being flagged, and place a $DEBUG metacommand
after it.
STATUS
Microsoft has confirmed this to be a problem in FORTRAN PowerStation 32 for
Windows NT and MS-DOS, version 1.0 and 1.0A. This problem was corrected in
FORTRAN PowerStation 32, version 4.0.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbbug kbCompiler kbfix KB110002 |
---|
|