FIX: F1035: Expression too Complex on a CALL Statement

Last reviewed: September 11, 1997
Article ID: Q63645
5.00 5.10 | 5.00 5.10 MS-DOS | OS/2 kbtool kbfixlist kbbuglist kberrmsg kbcode

The information in this article applies to:

  • Microsoft FORTRAN for MS-DOS, versions 5.0 and 5.1
  • Microsoft FORTRAN for OS/2, versions 5.0 and 5.1

SYMPTOMS

In Microsoft FORTRAN versions 5.0 and 5.1, the error:

   fatal error F1035: expression too complex, please simplify

is generated on the CALL statement when compiling the following FORTRAN program:

      CHARACTER*1 FILE8, FILE9, FILEA, FILEB
      CHARACTER*1 OUT1, OUT2, OUT3, OUT4, OUT5
      CHARACTER*1 TITLEE, TITLET
C
      CALL IPEXP
     &  (DSFILE, DSOIL, EFFIRR, EXPTNO, FILE1, FILE2, FILE4, FILE5,
     &  FILE6, FILE7, FILE8, FILE9, FILEA, FILEB, IIRR, INSTE, ISIM,
     &  ISOILT, ISOW, ISWNIT, MTRT, NFEXP, NREP, NSFILE, NTRT,
     &  NWFILE, OUT1, OUT2, OUT3, OUT4, OUT5, PHINT, PLANTS, ROWSPC,
     &  RUNALL, RUNEND, SDEPTH, SITEE, THETAC, TITLEE, TITLET)
      END

The following is the FL command line used to compile the FORTRAN program above and generate the "expression too complex" error:

   FL /c test.for

The exact combination of variable declarations and CALL statement will generate the "expression too complex error." Rearranging the order of the variables in the CALL statement or in the declarations or changing the variable names will prevent this error from occurring.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN versions 5.0 and 5.1. This problem was corrected in FORTRAN PowerStation.

MORE INFORMATION

Disabling optimization does not inhibit generation of the error "fatal error F1035: expression too complex, please simplify."


Additional reference words: 5.00 5.10
KBCategory: kbtool kbfixlist kbbuglist kberrmsg kbcode
KBSubcategory: FLIss
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.