BUG: Large BLOCK DATA and /Od Causes F1038 in Pass Three

Last reviewed: July 6, 1995
Article ID: Q86747
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, version 5.1
  • Microsoft FORTRAN for OS/2, version 5.1

SYMPTOMS

Extremely large BLOCK DATA subprograms or code that contains a very large number of DATA statements may cause the compiler to generate the following error:

   fatal error F1038: unexpected end of file in Pass 3

This error has only been observed when the /Od compiler option was used.

CAUSE

The /Od option causes the compiler to use F3S.EXE for the third pass of the compile. This small memory model version of the third pass has less capacity than the standard third pass, F3.EXE. The extremely large number of DATA statements exceeds the capacity of this small model component.

RESOLUTION

Use the /B3 option to force the compiler to use F3.EXE rather than the small model F3S.EXE or eliminate the /Od option. Here is an example compile command line:

   fl /Od /B3 F3.EXE test.for

STATUS

Microsoft has confirmed this to be a problem in FORTRAN version 5.1.

This is not an issue in FORTRAN PowerStation.


Additional reference words: 5.10
KBCategory: kbtool kbbuglist
KBSubcategory: FLIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 6, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.