FIX: Internal Compiler Error: '@(#)omf.c:1.60', Line 185

Last reviewed: September 11, 1997
Article ID: Q58322
5.00 5.10 MS-DOS kbprg kbfixlist kbbuglist kberrmsg kbcode

The information in this article applies to:

  • Microsoft FORTRAN for MS-DOS, versions 5.0 and 5.1

SYMPTOMS

The program below causes the following internal compiler error with FORTRAN versions 5.0 and 5.1:

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

CAUSE

The program defines a common block of arrays that spans three segments. The program then initializes the arrays of the common block to zero. The error is generated because the program is initializing the arrays in a different order than they are specified in the common block.

RESOLUTION

The workaround is to initialize the arrays in the same order that they appear in the common block.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN versions 5.0 and 5.1 for MS-DOS and OS/2. This problem was corrected in FORTRAN PowerStation.

MORE INFORMATION

The following program demonstrates the internal compiler error:

C ============ FORTRAN SOURCE CODE == Fragment #1 ===============

      real*8 test1[huge](225,100), test2(300), test3(300)

      common /test/ test1, test2, test3

      data test3 /300*0/
      data test1 /22500*0/

      end
C ===============================================================

The workaround is to initialize the arrays in the order they appear in the common block as seen below.

C ============ FORTRAN SOURCE CODE == Fragment #2 ===============

      real*8 test1[huge](225,100), test2(300), test3(300)

      common /test/ test1, test2, test3

      data test1 /22500*0/
      data test3 /300*0/

      end
C ===============================================================


Additional reference words: 5.00 5.10
KBCategory: kbprg kbfixlist kbbuglist kberrmsg kbcode
KBSubcategory: FLIss
Solution Type : kbfix


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: September 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.