enum redeclaration

Dean Long dlong at midgard.ucsc.edu
Sun Oct 8 09:34:41 AEST 1989


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 at midgard.ucsc.edu



More information about the Comp.lang.c mailing list