FIX: F6511 Caused by Repeat Factors Used with NAMELIST

Last reviewed: September 11, 1997
Article ID: Q49895
5.00 5.10 | 5.00 5.10
MS-DOS    | OS/2
kbtool kbfixlist kbbuglist kberrmsg

The information in this article applies to:

  • Microsoft FORTRAN for MS-DOS, versions 5.0 and 5.1
  • Microsoft FORTRAN for OS/2, versions 5.0 and 5.1

SYMPTOMS

Programs that are compiled with the Microsoft FORTRAN Compiler version 5.0 or 5.1, that use the VAX extension NAMELIST, and read in input that contains repeat factors, may generate the following error:

   F6511: variable name not found

RESOLUTION

Avoid the use of repeat factors when using the VAX extension NAMELIST.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN versions 5.0 and 5.1. This problem was corrected in FORTRAN PowerStation.

MORE INFORMATION

When the following input is used

  &BASICD
  XYZW(1,1) = 13, 9*0, 73, 9*0
  WFTST(1,1) = 1.0, 9*0, 1.0, 9*0
  /

the following code generates run-time error "F6511: READ(CON) - variable name not found":

Sample Code

      REAL*4 XYZW(2,10), WFTST(2,10)
      NAMELIST /BASICD/ XYZW, WFTST
      READ (*, BASICD)
      END

As a workaround, do not use the repeat factors; for example, the following input works properly:

  &BASICD
  XYZW(1,1) = 13,0,0,0,0,0,0,0,0,0,73,0,0,0,0,0,0,0,0,0
  WFTST(1,1) = 1.0,0,0,0,0,0,0,0,0,0,1.0,0,0,0,0,0,0,0,0,0
  /

Also, it the last data item in the array is not a repeat factor, repeat factors can be used.


Additional reference words: 5.00 5.10 replication factor
KBCategory: kbtool kbfixlist kbbuglist kberrmsg
KBSubcategory: FLIss
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 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.