[comp.lang.c++] empty enum types legal?

rfg@pink.ACA.MCC.COM (Ron Guilmette) (07/03/89)

Cfront 2.0 appears to accept the following code.  Should it?  The
C++ manual and ANSI C (draft) standard say no.  Who is right?

--------------------------------------------------------------------
// Check that an enum type definition must contain at least one
// enumeration value.

enum enum_type { };	// ERROR
--------------------------------------------------------------------

-- 
// Ron Guilmette  -  MCC  -  Experimental Systems Kit Project
// 3500 West Balcones Center Drive,  Austin, TX  78759  -  (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg