FIX: F1001, regMD.c, line 2317, Complicated Expression (77445)



The information in this article applies to:

  • Microsoft FORTRAN Compiler for MS-DOS 5.0
  • Microsoft FORTRAN Compiler for MS-DOS 5.1
  • Microsoft FORTRAN compiler for OS/2 5.0
  • Microsoft FORTRAN compiler for OS/2 5.1

This article was previously published under Q77445

SYMPTOMS

If the program being compiled contains a complicated arithmetic expression, the compiler may fail during pass two with the error message
F1001: Internal Compiler Error

(compiler file '@(#)regMD.c:1.8', line 2317)
Contact Microsoft Technical Support

RESOLUTION

Compiling the program with the /Od option to suppress optimization may work around the error.

STATUS

Microsoft has confirmed this to be a problem in the products listed above. This problem was corrected in FORTRAN PowerStation.

MORE INFORMATION

The following code reproduces the internal compiler error:

Sample code

      GAM1=EXPDIF*Z/A* Z**(A-1.)
     1  /(1.-A    *Z/( A     *(A+ 1.+  Z/((A+ 2.)
     2  *(1.-(A+1.)*Z/((A+ 2.)*(A+ 3.+2.*Z/((A+ 4.)
     3  *(1.-(A+2.)*Z/((A+ 4.)*(A+ 5.+3.*Z/((A+ 6.)
     4  *(1.-(A+3.)*Z/((A+ 6.)*(A+ 7.+4.*Z/((A+ 8.)
     5  *(1.-(A+4.)) )))) )))) )))) ))))

      END
				

Modification Type:MajorLast Reviewed:12/1/2003
Keywords:KB77445