| Summary: | Re: f77 man page needs updated | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Randall Hopper <aa8vb> |
| Component: | bin | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 1.0-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: gnats-admin->freebsd-doc Belongs to doc. State Changed From-To: open->closed Followup to bin/17611. |
Randall Hopper: |>Synopsis: f77 man page needs updated ... | f77(1) says "From the user side of view this FORTRAN to C | translation is completely transparent - f77 looks like a | traditional FORTRAN compiler." | | However, pop this in a file: | | SUBROUTINE XMDF2T(APARM) | IMPLICIT DOUBLE PRECISION(A) | INTEGER INT1 | DATA FR/0D0/ | INTEGER INT2 | 99998 END | | and compile using "f77 -c tst.f": | | Error on line 5 of tst.f: Statement order error: declaration after DATA | | f77 compilers will eat this, but f2c will not. This is briefly | mentioned in f2c.ps. I found a tool that pre-chews FORTRAN so that f2c can digest it. It also comes with a "f77" front-end script: http://www-hermes.desy.de/ww/f77prob.html Expect a port soon. Randall