Article ID: 111235
Article Last Modified on 10/17/2003
APPLIES TO
- Microsoft FORTRAN PowerStation 1.0 Standard Edition
- Microsoft Fortran PowerStation 1.0a for MS-DOS
- Microsoft FORTRAN PowerStation 32
This article was previously published under Q111235
SYMPTOMS
Compiling a file that contains an assumed-size array expression may produce the following error under Windows NT:
Under straight MS-DOS, the following error may be produced during compilation:
Under the Windows MS-DOS box, no error is produced. The appropriate errors for this situation are:
CAUSE
Because the size of an assumed-sized array is not known at compile time, you cannot use an assumed-size array in an array expression.
RESOLUTION
Do not use assumed-size arrays in array expressions.
STATUS
Microsoft has confirmed this to be a problem in FORTRAN PowerStation 32 for Windows NT version 1.0 and MS-DOS version 1.0 and 1.0a. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
The following sample illustrates the problem:
Sample Code
c Compile options needed: none c INTEGER*2 FUNCTION GETSP(SPVALU) INTEGER*2 COMBUF INTEGER*2 SPVALU(*) SPVALU = COMBUF ! Array expression sets each element to COMBUF END
Additional query words: 1.00 1.00a ICE array operations
Keywords: KB111235