FIX: Compiler Displays Incorrect Line-Number Information

Last reviewed: September 18, 1997
Article ID: Q111091
1.00 1.00a | 1.00
MS-DOS     | WINDOWS NT
kbtool kbfixlist kberrmsg

The information in this article applies to:

  • Microsoft FORTRAN PowerStation for MS-DOS, version 1.0 and 1.0a
  • Microsoft FORTRAN PowerStation 32 for Windows NT, version 1.0

SYMPTOMS

An attempt to compile a file that contains more than 32767 source lines may produce incorrect line-number information for compile-time error and warning messages appearing after the 32767th line in a file. The line numbers displayed are either negative or fall in the 0 (zero) to 32767 range.

When compiling from within the Visual Workbench, you cannot automatically jump to lines containing these invalid line numbers.

CAUSE

The line-number information is displayed as an INTEGER*2 value.

RESOLUTION

If a subprogram is less than 32K in size, place the subprogram in a separate file when compiling. Once debugged, the source file can be added to the end of the original file if desired.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN PowerStation 32 for Windows NT and MS-DOS, version 1.0 and 1.0A. This problem was fixed in FORTRAN PowerStation, version 4.0.

MORE INFORMATION

The following code can be compiled and run to create a sample that demonstrates the problem:

Sample Code

c Compile options needed: none c

      open(1,file='b.for',status='new')  ! Creates B.FOR
      write(1,*)   '     x = 0'
      do i=1,32*1024 - 1
        write(1,*) '     x = x + 1'
      end do
      write(1,*)   '     x == x + 1'
      write(1,*)   '     print*, x'
      write(1,*)   '     end'
      end


Additional reference words: buglist1.00 1.00A
KBCategory: kbtool kbfixlist kbbuglist kberrmsg
KBSubcategory: FL32Iss
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 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.