home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!nntp.msstate.edu!ukma!cs.widener.edu!iggy.GW.Vitalink.COM!lll-winken!miguel.llnl.gov!macq
- From: macq@miguel.llnl.gov (Don MacQueen)
- Newsgroups: comp.lang.fortran
- Subject: Re: f77 parse error (Sun 4)
- Message-ID: <135817@lll-winken.LLNL.GOV>
- Date: 9 Sep 92 17:33:04 GMT
- References: <135445@lll-winken.LLNL.GOV> <1992Sep5.051541.26950@chpc.utexas.edu>
- Sender: usenet@lll-winken.LLNL.GOV
- Organization: Lawrence Livermore National Laboratory
- Lines: 61
- Nntp-Posting-Host: miguel.llnl.gov
-
- In article <1992Sep5.051541.26950@chpc.utexas.edu>, aswx266@chpc.utexas.edu (Michael Lemke) writes:
- |> In article <135445@lll-winken.LLNL.GOV> macq@miguel.llnl.gov (Don MacQueen) writes:
- |> >I have a fortran subroutine that I got from somebody.
- |> >It is from a complete code that was up and running
- |> >under VMS.
- |> >
- |> >When I try to compile with f77 Sun fortran 1.4 on a
- |> >Sun sparcstation IPC (Sun OS 4.1.2) I get this error
- |> >message:
- |> >
- |> >Bad parse, return code 1
- |> >
- |> >What is this all about? I can't see anything wrong with
- |> >the code.
- |>
- |> With this little information I can only guess. Next time provide
- |> exactly what you entered and the the precise error message.
- |>
- |> My guess is you ran into the silly/stupid/sick Sun *extension* to treat
- |> a backslash in character constants as a masking symbol like in the
- |> shell. So if you have something like 'a\' the Sun doesn't see the
- |> ending quote. Try to compile with -xl. That makes it a bit more VAX
- |> conform and removes *this* bug (feature, it is documented). But your
- |> problem might something completely different. Just my guess.
- |>
- |> --
- |> Michael Lemke
- |> Astronomy, UT Austin, Texas
- |> (michael@io.as.utexas.edu or UTSPAN::UTADNX::IO::MICHAEL [SPAN])
-
- --
- My thanks to Michael and a couple of people from Sun who
- responded privately. It turns out the problem was some
- extraneous parantheses in an implied do loop in a write
- statement. The original code compiles and runs on a Vax.
-
- Here is an example, an excerpt:
-
- C ********************************************************
- SUBROUTINE WRITE1(IFOUT,NSITE,ALPHA)
- C ********************************************************
- C
- dimension zseason(10),pseason(10)
- WRITE(IFOUT,360) ((I,ZSEASON(I),PSEASON(I)),I=1,NSEASON)
- end
-
- I appreciate the advice to post the code. However, the error
- message gives absolutely no clue as to where in the code
- the error is, and I wasn't about to post a several hundred
- line subroutine.
-
- I did provide the precise error message. There were
- some additional syntax error messages, but no indication that
- any of them were associated with the above error message. Now,
- of course, I know better.
- ---------------------------------------------------
- Don MacQueen macq@miguel.llnl.gov
- Lawrence Livermore Nat. Lab.
- 7000 East Ave., L-307 (510) 423-1062
- Livermore, CA 94550
- ---------------------------------------------------
-