FIX: Protection Violation Compiling BLOCK DATA with Implied DOLast reviewed: September 11, 1997Article ID: Q63817 |
5.00
OS/2
kbtool kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSAn attempt to compile an application fails and the compiler generates a protection violation. This error does not occur when compiling the application in MS-DOS or in an MS-DOS compatibility window in OS/2.
CAUSEThe application contains a BLOCK DATA subprogram that uses an implied DO list and the compiler command line includes the /4Ya option switch.
RESOLUTIONTo address this problem, perform one of the following two steps:
STATUSMicrosoft has confirmed this to be a problem in FORTRAN version 5.0 for OS/2. This problem was corrected in FORTRAN version 5.1 for MS-DOS and OS/2.
MORE INFORMATIONThe following code example demonstrates this problem.
Sample CodeC Compile options needed: /4Ya to reproduce problem
BLOCK DATA INTEGER VAR(2) COMMON /TEST/ VAR DATA (VAR(I), I = 1, 2) /0, 1/ END |
Additional reference words: 5.00 buglist5.00 fixlist5.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |