Path: utzoo!attcan!uunet!ginosko!usc!apple!agate!shelby!portia!midgard.ucsc.edu!dlong From: dlong@midgard.ucsc.edu (Dean Long) Newsgroups: comp.lang.c Subject: enum redeclaration Keywords: enum Message-ID: <5648@portia.Stanford.EDU> Date: 7 Oct 89 23:34:41 GMT Sender: USENET News System Reply-To: dlong@midgard.ucsc.edu (Dean Long) Lines: 13 enum {A, B, C}; enum {A, B, C, D}; enum {B = 1, C, X}; Question: are the second and third declarations OK, assuming that all three are in the same scope? The reason I ask this is that I believe the enum bug fix for 4.3 PCC posted in comp.bugs.4bsd changes the behavior of the compiler so that the above declarations are allowed. Without the enum bug fix, the second and third will get redeclaration errors. ---------------------------- Dean Long dlong@midgard.ucsc.edu