Microsoft KB Archive/65608

= FIX: Incorrect Use of Structure Variable Hangs Compiler =

Article ID: 65608

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft FORTRAN Compiler 5.0
 * Microsoft FORTRAN Compiler 5.0

-



This article was previously published under Q65608



SYMPTOMS
Compiling 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)



STATUS
Microsoft has confirmed this to be a problem in FORTRAN version 5.0. This problem was corrected in FORTRAN version 5.1.



MORE INFORMATION
When 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 query words: 5.00

Keywords: kbfix KB65608

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.