BUG: F1001: omf.c:1.60 Line 185; /Gt and FORMAT Specifiers

Last reviewed: July 11, 1995
Article ID: Q69802
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 5.0, and 5.1
  • Microsoft FORTRAN for OS/2, versions 5.0, and 5.1

SYMPTOMS

Using Microsoft FORTRAN version 5.0 or 5.1 to compile a program with the /Gt compiler option can result in the following error:

   fatal error F1001: Internal Compiler Error
               (compiler file '@(#)omf.c:1.60', line 185)

This specific problem involving the /Gt compiler option has been encountered only in code that contains FORMAT statements and array declarations. Using a smaller or larger data threshold value, slightly modifying a format statement, or changing an array bound will suppress the error.

NOTE: The /Gt option is not supported in FORTRAN PowerStation, so this is not a problem in FORTRAN PowerStation.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN versions 5.0 and 5.1.

MORE INFORMATION

The following sample program illustrates the problem:

       integer ii(380), jj(381,42)
       read(*,'(1x,1i1)') ii(1)
       end

Compiling this program with /Gt1520 will generate the error. However, compiling with a data threshold value less than 3 (for example, /Gt2) or greater than 1520 (for example, /Gt1521) suppresses the error.

Changing the bound of array ii or modifying the format of the read statement also suppresses error, as illustrated below:

       integer ii(381), jj(381,42)   ! Change bound of array ii.
       read(*,'(1x,i1)') ii(1)       ! Modify inline FORMAT statement.
       end

This is one of the simpler code samples that exhibits this error. The particular /Gt value that causes the problem is different for other programs that result in this error.


Additional reference words: 5.00 5.10
KBCategory: kbtool kbbuglist kberrmsg
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 11, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.