[comp.sys.next] Fortran

tennant@xanth.msfc.nasa.gov (Allyn F. Tennant - ES65) (05/03/91)

I'm currently using the 'f2c' Fortran compiler on my NextStep 1.0a system.
Alas, the following the WRITE in the following program will crash with
a Segmentation violation at run time (all values of X from 1.E6 to
9.99...E7 seem to cause the crash).  I dragged the f2c source over to
a SUN and this problem did not appear.  Also, the C code generated by
f2c on the NeXT looks OK, so the problem appears to be with the f2c
run time library as implemented on the NeXT.

1) Does anyone else have this problem?

2) Will f2c under 2.0/2.1 fix this problem?

3) Any C hackers out there willing to fix this?

The program:

      REAL X
C---
      X=1.E7
      WRITE(*,*) X
      END

Please reply by email to tennant@xanth.mscf.nasa.gov (Don't post!)

					Allyn