BUG: F1001, emit.c, Line 400 with /Gw /4Yb

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

SYMPTOMS

When compiling a program with Microsoft FORTRAN version 5.1 with the /4Yb and /Gw compile options, the following error is generated:

   fatal error F1001: Internal Compiler Error
                   (compiler file '@(#)emit.c:1.2', line 400)
                   Contact Microsoft Technical Support

CAUSE

This error may occur when compiling a subroutine that contains an index to an adjustable sized array within an executable statement. This subroutine must also be compiled in the same source file as the main program.

RESOLUTION

To avoid this error, compile the subroutine in a separate source file from the main program, or remove the /4Yb or /Gw option from the compile line.

STATUS

Microsoft has confirmed this to be a problem in Microsoft FORTRAN version 5.1 for MS-DOS and OS/2.

This is not an issue in FORTRAN PowerStation because the /Gw option is not supported.

MORE INFORMATION

The following code can be used reproduce the problem:

Sample code

      stop
      end

      subroutine sub(j,k)
      integer k,j(k)
      read(*,*)k
      end


Additional reference words: 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.