The information in this article applies to:
SYMPTOMSAn application produces incorrect results. Specifying the /Od compiler option switch and recompiling does not change the results. When you compile the application with Microsoft FORTRAN version 4.0, it produces correct results. CAUSEThe application uses an ISHFT or ISHL logical shift intrinsic function as an argument to another ISHFT or ISHL logical shift intrinsic function. RESOLUTIONTo work around this problem, modify the source code to store the results of one logical shift operation in a temporary variable. Specify the variable as the argument to the other logical shift instruction. STATUSMicrosoft has confirmed this to be a problem in FORTRAN versions 4.01, 4.1, 5.0, and 5.1. This problem was corrected in FORTRAN PowerStation, version 1.0. MORE INFORMATIONThe following code example demonstrates this problem. Sample Code #1
This application produces the following output:
It is designed to produce the following output:
Substituting the ISHL logical shift intrinsic function for the ISHFT
logical shift intrinsic function produces the same incorrect results.
To work around this problem, split the logical shift functions into two separate expressions. The following code example demonstrates this technique. Sample Code #2
Additional query words: 4.01 4.10 5.00 5.10 buglist4.01 buglist4.10 buglist5.00 buglist5.10 fixlist1.00
Keywords : |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |