The information in this article applies to:
SYMPTOMSThe following FORTRAN program produces incorrect results and causes the machine to hang:
The correct output should be as follows:
ZZ1234The actual output is as follows: ZZ1234 CAUSE
The code causes the machine to hang. Compiling without optimization
had no effect. The problem is that bad code is generated for the
substrings on the logical test line. Here the two substrings must be
evaluated and incorrect code is being generated. If "N" in the
concatenated substring is replaced with the numerical equivalent "4"
or if the concatenation is executed previously and a temporary
variable is used for the logical test, correct code is generated
and everything executes correctly.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FORTRAN PowerStation. Additional query words: 4.10 5.00 5.10
Keywords : |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |