Article ID: 49895
Article Last Modified on 12/1/2003
APPLIES TO
- Microsoft FORTRAN Compiler 5.0
- Microsoft FORTRAN Compiler 5.1
- Microsoft FORTRAN Compiler 5.0
- Microsoft FORTRAN Compiler 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:
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 query words: 5.00 5.10 replication factor
Keywords: kbfix KB49895