Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!pp!pink!rfg From: rfg@pink.ACA.MCC.COM (Ron Guilmette) Newsgroups: comp.lang.c++ Subject: empty enum types legal? Message-ID: <269@pink.ACA.MCC.COM> Date: 2 Jul 89 21:11:03 GMT Reply-To: rfg@MCC.COM (Ron Guilmette) Organization: MCC Austin, Texas Lines: 16 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