Microsoft KB Archive/86747

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

Article ID: 86747

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN Compiler 5.1

-



This article was previously published under Q86747



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: KB86747

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.