Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!decwrl!labrea!polya!goofy!mason From: mason@goofy..Stanford.EDU (Tony Mason) Newsgroups: comp.unix.ultrix Subject: Ultrix 3.0 (RISC) Compiler bug. Message-ID: <8829@polya.Stanford.EDU> Date: 29 Apr 89 02:53:04 GMT Sender: USENET News System Reply-To: mason@goofy.Stanford.EDU (Tony Mason) Organization: Distributed Systems Group, Stanford University Lines: 21 The RISC compiler fails to handle enumerated type comparisons correctly. For instance, the following code fragment generates warnings: { enum {a,b} x; int z; z = (a == b); } generates a warning message on the assignment line claiming a type mismatch (this causes expressions using logical operations to break inside if statements. Thus, "if((a == a) && (b == b))" won't work because the operands of "&&" aren't integers (according to the compiler.)) Let me guess, it's fixed in the Mips 2.0 compiler, right? :-) Tony Mason Distributed Systems Group Stanford University mason@pescadero.stanford.edu