This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115a. See for the official list.


803. sizeof an enumeration type with a fixed underlying type

Section:  [expr.sizeof]     Status: CD2     Submitter: UK     Date: 3 March, 2009

N2800 comment UK 70

[Voted into WP at October, 2009 meeting.]

There is no reason for the prohibition of using sizeof on “an enumeration type before all its enumerators have been declared” ( [expr.sizeof] paragraph 1) if the underlying type of the enumeration is fixed.

Proposed resolution (July, 2009):

Change [expr.sizeof] paragraph 1 as follows:

...The sizeof operator shall not be applied to an expression that has function or incomplete type, or to an enumeration type whose underlying type is not fixed before all its enumerators have been declared, or to the parenthesized name of such types, or to an lvalue that designates a bit-field...