Microsoft KB Archive/69958

From BetaArchive Wiki

FIX: 32K Structure in Common Block: F2379 Crossing Segment PSS ID Number: Q69958 Article last modified on 07-19-1994

5.00 | 5.00

MS-DOS | OS/2

The information in this article applies to:
- Microsoft FORTRAN for MS-DOS, version 5.0 - Microsoft FORTRAN for OS/2, version 5.0

SYMPTOMS

Using Microsoft FORTRAN version 5.00 to compile a program that has a structure that is greater than or equal to 32K bytes in a common block results in the error:

error F2379: item in common block crosses segment

This error should not occur unless the structure is greater than or equal to 64K bytes in size.

STATUS

Microsoft has confirmed this to be a bug in the products listed above. This problem was corrected in FORTRAN, version 5.10.

MORE INFORMATION

The following program generates the error:

Sample code

  common /cblock/ struct1

  structure /test/
    integer*1 arr1(32768)
  end structure

  record /test/ struct1

  struct1.arr1 = 1.0

  end

Additional reference words: 5.00

=================================================================

Copyright Microsoft Corporation 1994.