home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.fortran:4263 comp.sys.hp:12760
- Newsgroups: comp.lang.fortran,comp.sys.hp
- Path: sparky!uunet!nih-csl.dcrt.nih.gov!helix.nih.gov!rvenable
- From: rvenable@helix.nih.gov (Richard M. Venable)
- Subject: Re: Weird HP compiler warning
- Message-ID: <1992Nov10.190621@helix.nih.gov>
- Sender: postman@alw.nih.gov (AMDS Postmaster)
- Reply-To: rvenable@helix.nih.gov (Richard M. Venable)
- Organization: National Institutes of Health
- References: <1992Nov10.193635.2736@alchemy.chem.utoronto.ca>
- Date: Wed, 11 Nov 1992 00:06:21 GMT
- Lines: 40
-
- In article <1992Nov10.193635.2736@alchemy.chem.utoronto.ca>,
- mroussel@alchemy.chem.utoronto.ca (Marc Roussel) writes:
- |> I usually like my compilers to give me a lot of warnings, even
- when
- |> they are most likely useless. In this case however, I have run
- across
- |> one warning whose meaning I cannot fathom. Consider the following
- short
- |> program:
- |>
- |> double precision h,nexth,err,d2fex
- |> h = 1.d0
- |> err = 10.d0
- |> d2fex = 123.d0
- |> nexth = min(h,sqrt(12.d0*err/d2fex))
- |> write(*,*)nexth
- |> END
- |>
- |> For this piece of code, the compiler produces the warning
- |>
- |> Warning on line 5 of weird.f: Argument has same name as INTRINSIC
- function
- |>
- [ some commentary deleted ]
-
- Hmmm. I tried the above code on an HP/Apollo workstation and on an
- HP9000/750
- and didn't get the above error message on either system.
-
- <---------------------------------------------------------------------->
- >
- < Rick Venable (O O) | "Back off, I'm a scientist."
- >
- < FDA/CBER Biophysics Lab )|( | -- Bill Murray in
- >
- < rvenable@helix.nih.gov (=) | 'Ghostbusters'
- >
- <---------------------------------------------------------------------->
- >
-
-