Public Comment Number PC-UK0258 ISO/IEC CD2 9899 (SC22N2794) Public Comment =========================================== Date: 1998-11-12 Author: John R. Rickard Author Affiliation: Self Postal Address: Virata Ltd Mount Pleasant House 2 Mount Pleasant Huntingdon Road Cambridge CB3 0BL United Kingdom E-mail Address: Telephone Number: +44 1223 566919 Fax Number: +44 1223 566915 Category: Correction restoring original intent Committee Draft subsection: 6.3.1.1, 6.7.2.2 Title: Enumerated types compatibility confusion Section 6.7.2.2 says: Each enumerated type shall be compatible with an integer type. However, this requirement is trivially satisfied, because an enumerated type *is* an integer type (section 6.2.5, [#17]). (And, of course, it is compatible with itself by section 6.2.7.) This fact also makes the specification of the rank of an enumerated type (section 6.3.1.1) useless: The rank of any enumerated type shall equal the rank of the compatible integer type. One way to fix this would be to change the quoted sentence in section 6.7.2.2 to read: Each enumerated type shall be compatible either with the type /char/ or with a signed or unsigned integer type. and the quoted sentence in section 6.3.1.1 to read: Any enumerated type is compatible either with the type /char/ or with a signed or unsigned integer type; its rank shall equal the rank of that compatible type. (Simpler wording can be achieved if one does not allow an enumerated type to be compatible with plain /char/.)