FIX: Unexpected Statement Reached with Loop OptimizationLast reviewed: September 16, 1997Article ID: Q75624 |
5.00 5.10 | 5.00 5.10
MS-DOS | OS/2kbtool kbfixlist kbbuglist The information in this article applies to:
SYMPTOMSProgram execution incorrectly reaches executable statements when loop optimization is enabled.
STATUSMicrosoft has confirmed this to be a problem in the products listed above. The problem was corrected in FORTRAN PowerStation, version 1.0.
MORE INFORMATIONIn the following program, line number 116 is executed, when it should never be reached:
Sample code
INTEGER*2 LOOP/5/ WRITE (*,'(1x,I4)') LOOP110 IF (LOOP .LE. 0) GOTO 120 C WRITE (*,'(1x,I4)') LOOP LOOP = LOOP - 1 GOTO 110116 write (*,'(1x,A,I4)') 'Beyond loop',loop 120 write (*,'(1x,I4)') loop end RESOLUTIONTo alleviate this problem, suppress loop optimization with the /Od or /Odct compiler options.
|
Additional reference words: 5.00 5.10 buglist5.00 buglist5.10 fixlist1.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |