home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.fortran:4275 comp.sys.hp:12792
- Newsgroups: comp.lang.fortran,comp.sys.hp
- Path: sparky!uunet!mcsun!news.funet.fi!network.jyu.fi!sakkinen
- From: sakkinen@jyu.fi (Markku Sakkinen)
- Subject: Re: Weird HP compiler warning
- Message-ID: <1992Nov11.133205.4641@jyu.fi>
- Organization: University of Jyvaskyla, Finland
- References: <1992Nov10.193635.2736@alchemy.chem.utoronto.ca>
- Date: Wed, 11 Nov 1992 13:32:05 GMT
- Lines: 34
-
- 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.
-
- No, the argument is NOT an intrinsic, but the result returned
- from the call of an intrinsic function.
- Thus the compiler is really badly off the track.
- Perhaps prepending '+' before 'sqrt' would eliminate the annoying message?
-
- ----------------------------------------------------------------------
- Markku Sakkinen (sakkinen@jytko.jyu.fi)
- SAKKINEN@FINJYU.bitnet (alternative network address)
- Department of Computer Science and Information Systems
- University of Jyvaskyla (a's with umlauts)
- PL 35
- SF-40351 Jyvaskyla (umlauts again)
- Finland
- ----------------------------------------------------------------------
-