FIX: Incorrect Use of Structure Variable Hangs CompilerLast reviewed: September 11, 1997Article ID: Q65608 |
|
5.00 | 5.00
MS-DOS | OS/2
kbtool kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSCompiling code that attempts to access an undefined element of a STRUCTURE hangs your machine under MS-DOS and causes a protection violation under OS/2. The compiler should display the following:
error F2509: (element): not an element of (name) STATUSMicrosoft has confirmed this to be a problem in FORTRAN version 5.0. This problem was corrected in FORTRAN version 5.1.
MORE INFORMATIONWhen you compile with Microsoft FORTRAN version 5.0, the following code hangs the machine under MS-DOS and causes a protection violation under OS/2:
Sample Code
STRUCTURE /a/
INTEGER b
END STRUCTURE
RECORD /a/ c
c.b = c.b.d ! b.d is not an element of c
END
|
Additional reference words: 5.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |