Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!sgi!davea@quasar.wpd.sgi.com From: davea@quasar.wpd.sgi.com (David B. Anderson) Newsgroups: comp.sys.sgi Subject: Re: IRIX 3.2 C compiler bug Summary: Bug is fixed in release after 3.2 Message-ID: <49687@sgi.sgi.com> Date: 5 Feb 90 18:17:45 GMT References: <90Feb5.000622est.4918@neat.cs.toronto.edu> Sender: davea@quasar.wpd.sgi.com Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 16 In article <90Feb5.000622est.4918@neat.cs.toronto.edu>, ken@cs.toronto.edu (Ken Lalonde) writes: > double a,b,c; > b = 1.0; > c = 2.0; > a = b==c; The cc bug is in assigning the required 1 or 0 to a double where the conditional involves doubles: int i; i = (a==c); and if(a ==c) .... etc.... work ok. It has been fixed for the release after 3.2. Sorry for the inconvenience. [ David B. Anderson Silicon Graphics (415)335-1548 davea@sgi.com ]