BUG: Error in ELSEIF References Line Number for Matching IFLast reviewed: July 20, 1995Article ID: Q131497 |
The information in this article applies to:
SYMPTOMSA run-time error that occurs on a line with an ELSEIF statement is reported to have occurred on the line where the starting IF is located. NOTE: The /4Yb 'Extended error handling' option needs to be used in order for the line numbers to be displayed along with the error.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. NOTE: This behavior does not occur with FORTRAN PowerStation 32.
MORE INFORMATION
Sample Code to Demonstrate ProblemC C Compile options needed: /4Yb C C This program should give error F6096 when run PROGRAM ElseIfTestC Declare the variables INTEGER*4 A(8) INTEGER*4 I INTEGER*4 SC Initialize the variables A = 0 I = 0 S = 2C Begin the IF statement IF (S .EQ. 1) THEN ! Error reported on this line PRINT *,'Equals One' ELSEIF (A(I) .GT. 1) THEN ! Error occurs on this line PRINT *,'' ENDIF END |
Additional reference words: 5.10 1.00 1.00a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |