This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-04-18


1832. Casting to incomplete enumeration

Section: 7.6.1.9  [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 7.6.1.9 [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 7.6.1.9 [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...