FIX: Nested $IF Statements with $ELSE Cause F2830 ErrorLast reviewed: September 16, 1997Article ID: Q108366 |
1.00 1.00a | 1.00
MS-DOS | WINDOWS NTkbtool kbfixlist kberrmsg The information in this article applies to:
SYMPTOMSAn attempt to compile a program that contains nested $IF compiler conditions with $ELSE clauses may fail to produce the expected result. The compiler may generate the error:
error F2830: END missing CAUSEWhen there is a $ELSE following a $ENDIF and the outer $IF condition is met making the condition false, the compiler fails to parse for any metacommands following the $ELSE including the $ENDIF that terminates the outer $IF block.
STATUSMicrosoft has confirmed this to be a problem in Microsoft FORTRAN PowerStation 32 for Windows NT, version 1.0 and MS-DOS versions 1.0 and 1.0a. This problem was fixed in FORTRAN PowerStation, version 4.0.
MORE INFORMATIONThe sample code below illustrates the problem:
Sample CodeC Compile options needed: none $define first subroutine test$if defined (first) $if defined (second) $endif $else $endif return end |
Additional reference words: 1.00 1.00a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |