FIX: Incorrect Use of Structure Variable Hangs Compiler

ID: Q65608


The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, version 5.0
  • Microsoft FORTRAN for OS/2, version 5.0


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 :
Version : :5.0
Platform :
Issue type :


Last Reviewed: November 1, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.