[comp.lang.c++] cfront 2.0 bug 900205.01

rfg@paris.ics.uci.edu (Ron Guilmette) (02/08/90)

// cfront 2.0 bug 900205

// A reference to the sizeof() an enum type within the definition of
// that type itself is tolerated only if the type designation does not
// include the keyword `enum'.

enum e0 {
  enum0_enumerator_0,
  enum0_enumerator_1 = sizeof (e0),		// accepted
  enum0_enumerator_2 = sizeof (enum e0),	// rejected - forward decl?
  enum0_enumerator_3
};