IRIX 3.2 C compiler bug

David B. Anderson davea at quasar.wpd.sgi.com
Tue Feb 6 05:17:45 AEST 1990


In article <90Feb5.000622est.4918 at neat.cs.toronto.edu>, ken at 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 at sgi.com ]



More information about the Comp.sys.sgi mailing list