The information in this article applies to:
SYMPTOMSThe code below will generate the following output: 1.000000or print 1.000000 and cause a general protection fault. CAUSE
This behavior is not a problem with Microsoft FORTRAN. The FORTRAN 77
ANSI standard, section 15.9.2, specifies that when passing a constant
as an actual argument to a subroutine, the associated dummy argument
(in this case x) cannot be modified.
RESOLUTIONIf the associated dummy argument is going to be modified, pass a variable. For example, use "call sub1(y)" with y=1. MORE INFORMATIONThe following code demonstrates this information:
Additional query words: 1.00 4.00 4.10 5.00 5.10
Keywords : kbFortranPS kbLangFortran |
Last Reviewed: November 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |