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

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 query words: 5.10

Keywords :
Version : :5.1
Platform :
Issue type :


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