home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.fortran:4270 comp.sys.hp:12771
- Newsgroups: comp.lang.fortran,comp.sys.hp
- 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
- From: bauwens@acs.ucalgary.ca (Luc Bauwens)
- Subject: Re: Weird HP compiler warning
- Sender: news@acs.ucalgary.ca (USENET News System)
- Message-ID: <92Nov11.004828.18680@acs.ucalgary.ca>
- Date: Wed, 11 Nov 92 00:48:28 GMT
- References: <1992Nov10.193635.2736@alchemy.chem.utoronto.ca>
- Nntp-Posting-Host: acs2.acs.ucalgary.ca
- Organization: The University of Calgary, Alberta
- Lines: 26
-
- In article <1992Nov10.193635.2736@alchemy.chem.utoronto.ca> mroussel@alchemy.chem.utoronto.ca (Marc Roussel) writes:
- >
- > 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
- >
- >Of course the argument has the same name as an intrinsic! The argument
- >IS an intrinsic! Am I going to get this silly warning every time I put
- >one intrinsic inside another? My only comfort is that the program
- >executes correctly despite a warning which, to me at least, seems to
- >suggest that the compiler didn't get it.
-
- Which HP compiler does this? I tried with the compiler that
- comes with HP-UX 8.07, with the defaults options, and I didn't
- get any warning at all...
-
- Luc B
-
-