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


1832. Casting to incomplete enumeration

Section:  [expr.static.cast]     Status: CD4     Submitter: Richard Smith     Date: 2014-01-16

[Moved to DR at the November, 2014 meeting.]

The specification of casting to an enumeration type in [expr.static.cast] paragraph 10 does not require that the enumeration type be complete. Should it? (There is variation among implementations.)

Proposed resolution (February, 2014):

Change [expr.static.cast] paragraph 10 as follows:

A value of integral or enumeration type can be explicitly converted to an a complete enumeration type. The value is...