FIX: F1001: grammar.c, Line 101, Assumed-Size ArrayLast reviewed: September 16, 1997Article ID: Q86454 |
4.00 4.01 4.10 5.00 | 4.10 5.00
MS-DOS | OS/2kbtool kbfixlist kbbuglist kberrmsg kbcode The information in this article applies to:
SYMPTOMSCompiling a program that uses the C attribute in an INTERFACE statement to a subprogram that accepts an assumed-size array as an argument may generate the following error with Microsoft FORTRAN version 5.0:
fatal error F1001: Internal Compiler Error (compiler file '@(#)grammar.c:1.2',line 101)FORTRAN versions 4.0, 4.01, and 4.1 generate the following error:
fatal error F1001: Internal Compiler Error (compiler file '@(#)grammar.c:1.27',line 101) CAUSEThere are two similar ways to cause this internal compiler error:
RESOLUTIONUse one of the following workarounds:
STATUSMicrosoft has confirmed this to be a problem in FORTRAN versions 4.0, 4.01, 4.1, and 5.0. This problem was corrected in FORTRAN version 5.1.
MORE INFORMATIONThe following code can be used to generate the error:
Sample Code 1
interface to subroutine sub1[c] (array) integer array(*) end integer array(10) call sub1(array) endThe following code also generates the error:
Sample Code 2
external sub1[c] integer array(10) call sub1(array) endThe following code corrects the problem and does not generate the error:
Sample Code 3
interface to subroutine sub1[c] (array) integer array[reference](*) end integer array(10) call sub1(array) end |
Additional reference words: 4.00 4.10 5.00 5.10 buglist4.00 buglist4.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |