BUG: F1001 Error or Run-time Hang with /NDdatasegment Option

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

SYMPTOMS

An application compiled with Microsoft FORTRAN version 5.0 or 5.1 hangs and stops responding.

An attempt to build the same application with Microsoft FORTRAN versions 4.0, 4.01, or 4.1 fails and the compiler generates one of the following messages. For version 4.1:

   fatal error F1001: Internal Compiler Error
   (compiler file '@(#)MDmisc.c:1.78', line 883)

For version 4.01:

   fatal error F1001: Internal Compiler Error
   (compiler file '@(#)MDmisc.c:1.77', line 876)

For version 4.0:

   fatal error F1001: Internal Compiler Error
   (compiler file '@(#)MDmisc.c:1.70', line 828)

CAUSE

The application uses the /NDdatasegment option to name its data segment, assigns a value to a two-byte integer, and writes the value to the screen.

RESOLUTION

To avoid this problem, perform one of the following two steps:

  • Modify the source code to remove the WRITE statement.

    -or-

  • Modify the compiler command line to remove the /NDdatasegment option.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN versions 4.0, 4.01, 4.1, 5.0, and 5.1 for MS-DOS and versions 4.1, 5.0, and 5.1 for OS/2.

This is not a problem in FORTRAN PowerStation, which does not support the /ND option.

MORE INFORMATION

The following code example demonstrates the errors listed above. When a module does not perform any I/O operations, no errors occur and the application runs correctly.

Sample Code

C Compile options needed: /NDdatasegment

      INTEGER*2 N
      N = 1
      WRITE (*, *) N
      END


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