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


839. sizeof with opaque enumerations

Section:  [expr.sizeof]     Status: dup     Submitter: Alberto Ganesh Barbati     Date: 9 March, 2009 [expr.sizeof] paragraph 1 says,

The sizeof operator shall not be applied... to an enumeration type before all its enumerators have been declared...

This prevents use of sizeof with an opaque enumeration type, even though the underlying type of such enumerations is known.

Rationale (May, 2009):

Duplicate of issue 803.