The information in this article applies to:
SYMPTOMSUsing Microsoft FORTRAN versions 5.0 or 5.1 to compile a program that uses the LEN_TRIM intrinsic function on a character string that is defined as a PARAMETER may result in the following error:
STATUSMicrosoft has confirmed this to be a problem in FORTRAN versions 5.0 and 5.1 for MS-DOS and OS/2. This problem was corrected in FORTRAN PowerStation. MORE INFORMATIONThe following program will generate the internal compiler error:
Since the length of a PARAMETER character is fixed, and therefore, the
last nonblank character is known when the program is compiled, use of
the LEN_TRIM function on PARAMETER character strings can be avoided by
using this known constant value, or by using another PARAMETER to
store this value.
It is also possible to pass the PARAMETER as an argument to a function and to call the LEN_TRIM intrinsic function from within this user defined function without generating any errors. The following program illustrates this solution:
Additional query words: 5.00 5.10
Keywords : |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |