The information in this article applies to:
SYMPTOMSIn an application compiled with Microsoft FORTRAN, a logical IF statement in a GOTO loop produces incorrect results. CAUSEThe compiler incorrectly optimized the IF statement in the GOTO loop. RESOLUTION
To address this problem, perform one of the following two steps:
STATUSMicrosoft has confirmed this to be a problem in FORTRAN versions 4.0, 4.1, 5.0, and 5.1. This problem was corrected in FORTRAN PowerStation, version 1.0. MORE INFORMATION
As shown in the code sample below, the logical IF and GOTO loop
compiles and runs without errors but it does not execute the correct
lines of code. Because the GOTO 3100 statement in the logical IF
statement is ignored, the program prints "at 3200, loop failed."
Sample Code
Additional query words: 4.00 4.10 5.00 5.10 label run run-time buglist4.00 buglist4.10 buglist5.00 buglist5.10 fixlist1.00
Keywords : |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |