Article View: comp.sys.sgi.bugs
Article #6f77 compiler bug?
From: Bill Cornette
Date: Tue, 15 Dec 1992 17:05
Date: Tue, 15 Dec 1992 17:05
29 lines
1476 bytes
1476 bytes
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.
Technical Details
Message-ID:
<1992Dec15.170549.15433@photon.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!ncr-sd!crash!photon.photon.com!wmcShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.bugs Path: arc1-ca.pugleaf.net!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