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

  1. Xref: sparky comp.lang.fortran:4270 comp.sys.hp:12771
  2. Newsgroups: comp.lang.fortran,comp.sys.hp
  3. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!think.com!spool.mu.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!bauwens
  4. From: bauwens@acs.ucalgary.ca (Luc Bauwens)
  5. Subject: Re: Weird HP compiler warning
  6. Sender: news@acs.ucalgary.ca (USENET News System)
  7. Message-ID: <92Nov11.004828.18680@acs.ucalgary.ca>
  8. Date: Wed, 11 Nov 92 00:48:28 GMT
  9. References: <1992Nov10.193635.2736@alchemy.chem.utoronto.ca>
  10. Nntp-Posting-Host: acs2.acs.ucalgary.ca
  11. Organization: The University of Calgary, Alberta
  12. Lines: 26
  13.  
  14. In article <1992Nov10.193635.2736@alchemy.chem.utoronto.ca> mroussel@alchemy.chem.utoronto.ca (Marc Roussel) writes:
  15. >
  16. >      double precision h,nexth,err,d2fex
  17. >      h = 1.d0
  18. >      err = 10.d0
  19. >      d2fex = 123.d0
  20. >          nexth = min(h,sqrt(12.d0*err/d2fex))
  21. >      write(*,*)nexth
  22. >      END
  23. >
  24. >For this piece of code, the compiler produces the warning
  25. >
  26. >Warning on line 5 of weird.f: Argument has same name as INTRINSIC function
  27. >
  28. >Of course the argument has the same name as an intrinsic!  The argument
  29. >IS an intrinsic!  Am I going to get this silly warning every time I put
  30. >one intrinsic inside another?  My only comfort is that the program
  31. >executes correctly despite a warning which, to me at least, seems to
  32. >suggest that the compiler didn't get it.
  33.  
  34. Which HP compiler does this?  I tried with the compiler that 
  35. comes with HP-UX 8.07, with the defaults options, and I didn't
  36. get any warning at all...
  37.  
  38. Luc B
  39.  
  40.