home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / fortran / 4263 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.7 KB

  1. Xref: sparky comp.lang.fortran:4263 comp.sys.hp:12760
  2. Newsgroups: comp.lang.fortran,comp.sys.hp
  3. Path: sparky!uunet!nih-csl.dcrt.nih.gov!helix.nih.gov!rvenable
  4. From: rvenable@helix.nih.gov (Richard M. Venable)
  5. Subject: Re: Weird HP compiler warning
  6. Message-ID: <1992Nov10.190621@helix.nih.gov>
  7. Sender: postman@alw.nih.gov (AMDS Postmaster)
  8. Reply-To: rvenable@helix.nih.gov (Richard M. Venable)
  9. Organization: National Institutes of Health
  10. References:  <1992Nov10.193635.2736@alchemy.chem.utoronto.ca>
  11. Date: Wed, 11 Nov 1992 00:06:21 GMT
  12. Lines: 40
  13.  
  14. In article <1992Nov10.193635.2736@alchemy.chem.utoronto.ca>,
  15. mroussel@alchemy.chem.utoronto.ca (Marc Roussel) writes:
  16. |>      I usually like my compilers to give me a lot of warnings, even
  17. when
  18. |> they are most likely useless.  In this case however, I have run
  19. across
  20. |> one warning whose meaning I cannot fathom.  Consider the following
  21. short
  22. |> program:
  23. |> 
  24. |>       double precision h,nexth,err,d2fex
  25. |>       h = 1.d0
  26. |>       err = 10.d0
  27. |>       d2fex = 123.d0
  28. |>           nexth = min(h,sqrt(12.d0*err/d2fex))
  29. |>       write(*,*)nexth
  30. |>       END
  31. |> 
  32. |> For this piece of code, the compiler produces the warning
  33. |> 
  34. |> Warning on line 5 of weird.f: Argument has same name as INTRINSIC
  35. function
  36. |> 
  37.             [ some commentary deleted ]
  38.  
  39. Hmmm.  I tried the above code on an HP/Apollo workstation and on an
  40. HP9000/750
  41. and didn't get the above error message on either system.
  42.  
  43. <---------------------------------------------------------------------->
  44. >
  45. <  Rick Venable                (O O) |  "Back off, I'm a scientist."  
  46. >
  47. <  FDA/CBER Biophysics Lab      )|(  |        -- Bill Murray in       
  48. >
  49. <  rvenable@helix.nih.gov       (=)  |           'Ghostbusters'       
  50. >
  51. <---------------------------------------------------------------------->
  52. >
  53.  
  54.