BUG: R6000 During Compile with /MW, FORTRAN 5.1

Last reviewed: July 11, 1995
Article ID: Q75752
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 using the /MW option while compiling a program with Microsoft FORTRAN version 5.1, the following error may occur during pass two of the compiler:

   run-time error R6000
   - stack overflow

CAUSE

This is an optimization problem in pass two of the compiler. If a subprogram is fairly large and contains a lot of I/O statements, when compiling with the /MW option, pass two of the compiler may generate R6000 - stack overflow.

RESOLUTION

To eliminate the problem, disable optimization by including the /Od option during the compile. An alternative solution is to break up the program into different modules and compile separately.

STATUS

Microsoft has confirmed this to be a problem in Microsoft FORTRAN version 5.1 for MS-DOS and OS/2. We are researching this problem and will post new information here as it becomes available.


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.