This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 119a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-12-20
[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 memberinitialized with constant expressions can be used in an integralconstant expression only if it is “of effective integraltype.” Unscoped enumeration types should also be accepted insuch contexts.
Proposed resolution (September, 2009):
Change 7.7 [expr.const] paragraph 2, bullet 4, sub-bullet 1as indicated:
an lvalue-to-rvalue conversion (7.3.2 [conv.lval])unless it is applied to
an lvalue of effective integralor enumerationtype that refers to a non-volatile const variable or static datamember initialized with constant expressions, or
...