home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi.bugs
- Path: sparky!uunet!think.com!sdd.hp.com!ncr-sd!crash!photon.photon.com!wmc
- From: wmc@photon.com (Bill Cornette)
- Subject: f77 compiler bug?
- Message-ID: <1992Dec15.170549.15433@photon.com>
- Sender: usenet@photon.com (Usenet dummy users)
- Organization: Photon Research Associates, Inc.
- X-Newsreader: TIN [version 1.1 PL6]
- Date: Tue, 15 Dec 1992 17:05:49 GMT
- Lines: 29
-
- I posted this to comp.sys.sgi but it appears to have disappeared with
- the creation of these new groups, so here goes again.
-
- I seem to have encountered a compiler bug for SGI's f77 compiler.
- I used the line of code
-
-
- QROT=DPROD(TREF,1./TEMP)**XK
-
- where TREF=273.15, TEMP =304., and XK=1.50. The resulting value for
- QROT is identically 0.000000. TREF, TEMP, and XK are declared REAL and
- QROT is declared DOUBLE PRECISION.
- If I break the code up so
-
-
- QROT=DPROD(TREF,1./TEMP)
- QROT=QROT**XK
-
- I get the right answer of QROT=0.85...
-
- This looks like a compiler bug to me. Any comments?
- ---------------------------------------------------------------------------
- ---------------------------------------------------------------------------
- William M. Cornette Photon Research Associates, Inc.
- (619) 455-9741 9393 Towne Centre Drive, Suite 200
- FAX (619) 455-0658 San Diego, California 92121
- wmc@photon.com
- ---------------------------------------------------------------------------
- T.A.N.S.T.A.A.F.L.
-