FIX: Incorrect Use of Structure Variable Hangs Compiler (65608)



The information in this article applies to:

  • Microsoft FORTRAN Compiler for MS-DOS 5.0
  • Microsoft FORTRAN compiler for OS/2 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
				

Modification Type:MajorLast Reviewed:10/23/2003
Keywords:kbfix KB65608