Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!oliveb!pyramid!prls!philabs!linus!raybed2!cvbnet2!xenon.uucp!krishna From: krishna@xenon.uucp (Temporary) Newsgroups: comp.lang.c Subject: 'C' enum syntax problem Keywords: enum syntax Message-ID: <1095@cvbnet2.UUCP> Date: 17 Apr 89 17:05:55 GMT Sender: postnews@cvbnet2.UUCP Reply-To: krishna@xenon.uucp (Temporary) Distribution: usa Organization: Computervision Div., Prime Computer Inc., Bedford, MA Lines: 23 I seem to have some problem in using the enum construct on Sun-3 m/c. The following declarations generate an error. typedef enum WEEK { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY } ; typedef enum WEEK_END { SATURDAY, SUNDAY } ; The error messages are redeclaration of SATURDAY redeclaration of SUNDAY Does it mean that subsets of an enum cannot be defined ? Is this a bug in my C Compiler ? What does PAns say about this ? Is there a work around ? Krishna