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

2024-12-19


1219. Non-static data member initializers in constant expressions

Section: 6.8  [basic.types]     Status: C++11     Submitter: Jens Maurer     Date: 2010-11-13

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

The current treatment of constexpr constructors and constant expressions does not deal with the initializers for non-static data members, which should also be required to be constant expressions.

Proposed resolution (November, 2010) [SUPERSEDED]:

  1. Change 6.9.3.2 [basic.start.static] paragraph 2 as follows:

  2. Change 6.8 [basic.types] paragraph 10 as follows (wording assumes the proposed resolution of issue 981)

  3. A type is a literal type if it is: