home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / bugs / 6 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.4 KB  |  41 lines

  1. Newsgroups: comp.sys.sgi.bugs
  2. Path: sparky!uunet!think.com!sdd.hp.com!ncr-sd!crash!photon.photon.com!wmc
  3. From: wmc@photon.com (Bill Cornette)
  4. Subject: f77 compiler bug?
  5. Message-ID: <1992Dec15.170549.15433@photon.com>
  6. Sender: usenet@photon.com (Usenet dummy users)
  7. Organization: Photon Research Associates, Inc.
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. Date: Tue, 15 Dec 1992 17:05:49 GMT
  10. Lines: 29
  11.  
  12.     I posted this to comp.sys.sgi but it appears to have disappeared with
  13. the creation of these new groups, so here goes again.
  14.  
  15.     I seem to have encountered a compiler bug for SGI's f77 compiler.
  16. I used the line of code
  17.  
  18.  
  19.     QROT=DPROD(TREF,1./TEMP)**XK
  20.  
  21. where TREF=273.15, TEMP =304., and XK=1.50.  The resulting value for
  22. QROT is identically 0.000000.  TREF, TEMP, and XK are declared REAL and
  23. QROT is declared DOUBLE PRECISION.
  24.     If I break the code up so
  25.  
  26.     
  27.     QROT=DPROD(TREF,1./TEMP)
  28.         QROT=QROT**XK
  29.  
  30. I get the right answer of QROT=0.85...
  31.  
  32.     This looks like a compiler bug to me.  Any comments?
  33. ---------------------------------------------------------------------------
  34. ---------------------------------------------------------------------------
  35. William M. Cornette         Photon Research Associates, Inc.
  36. (619) 455-9741              9393 Towne Centre Drive, Suite 200
  37. FAX (619) 455-0658          San Diego, California  92121
  38. wmc@photon.com
  39. ---------------------------------------------------------------------------
  40. T.A.N.S.T.A.A.F.L.
  41.