FIX: F6511 Caused by Repeat Factors Used with NAMELIST (49895)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
This article was previously published under Q49895 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.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbfix KB49895 |
---|
|