Path: utzoo!attcan!uunet!mailrus!iuvax!maytag!gamiddon From: gamiddon@maytag.waterloo.edu (Guy Middleton) Newsgroups: comp.sys.mips Subject: mips cc bug Message-ID: <1990May28.152151.5506@maytag.waterloo.edu> Date: 28 May 90 15:21:51 GMT Organization: University of Waterloo Math Faculty Computing Facility Lines: 24 This code works everywhere except on my MIPS machine: typedef enum Foo { None=0, Some, All } Foo; main() { Foo x, y; x = (None<<2)|Some; switch (x) { case (((unsigned)None)<<2)|(((unsigned)Some)): printf( "blah\n" ); break; } } MIPS cc says: ccom: Error: enum.c, line 13: non-constant case expression case (((unsigned)None)<<2)|(((unsigned)Some)): -----------------------------------------------^