FIX: INDEX Function w/ Concatenation Yields Errors (85302)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 4.0
- Microsoft FORTRAN Compiler for MS-DOS 4.01
- Microsoft FORTRAN Compiler for MS-DOS 4.1
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN compiler for OS/2 4.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
This article was previously published under Q85302 SYMPTOMS
A program compiled with Microsoft FORTRAN version 4.0, 4.01, 4.1, 5.0, or
5.1 that contains the INDEX intrinsic function can generate incorrect
results or hang the machine while running under MS-DOS. Under similar
circumstances, the program may produce a protection violation while running
under OS/2. This problem may occur when one of the parameters to the INDEX
intrinsic function contains a string concatenation with a substring that is
indexed with a variable. Changing the compiler options has no effect.
RESOLUTION
To resolve the problem, use a temporary string variable for the string
concatenation prior to the INDEX call.
STATUS
Microsoft has confirmed this to be a problem in Microsoft FORTRAN versions
4.0, 4.01, 4.1, 5.0, and 5.1. This problem was corrected in FORTRAN
PowerStation, version 1.9.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbfix KB85302 |
---|
|