The information in this article applies to:
SYMPTOMSUsing Microsoft FORTRAN 5.0 (under MS-DOS) to compile a program that uses an element of a structure in a READ or WRITE statement after that structure is used in an EQUIVALENCE statement, can result in the following error: When compiling under OS/2, a protection violation is generated by the third pass of the compiler. CAUSEThe errors do not occur if the element of the structure is assigned to a temporary variable, and then this temporary variable is used in the READ or WRITE. RESOLUTION/STATUS
An application note titled "FORTRAN 5.0 F1.EXE and F1L.EXE Structure
Patch" is available to correct these errors. To obtain this
application note, call Microsoft Product Support Services.
MORE INFORMATIONSample Code #1
Sample Code #2
If the /Zi compiler option is used to compile the program above, a
protection violation will result when compiling under OS/2. The
compiler will hang when run under MS-DOS. For more information, query
on the following:
/Zi and EQUIVALENCEing and RECORD and variables and hangs and machine Additional query words: 5.00 5.10 hf0225
Keywords : |
Last Reviewed: November 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |