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

2024-03-20


806. Enumeration types in integral constant expressions

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

N2800 comment UK 50

[Voted into WP at October, 2009 meeting.]

According to 7.7 [expr.const] paragraph 2, bullet 4, sub-bullet 1, a non-volatile const variable or static data member initialized with constant expressions can be used in an integral constant expression only if it is “of effective integral type.” Unscoped enumeration types should also be accepted in such contexts.

Proposed resolution (September, 2009):

Change 7.7 [expr.const] paragraph 2, bullet 4, sub-bullet 1 as indicated: