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


948. constexpr in conditions

Section: 8.5  [stmt.select]     Status: C++11     Submitter: Gabriel Dos Reis     Date: 2 August, 2009

[Voted into WP at August, 2010 meeting.]

The grammar for condition in 8.5 [stmt.select] paragraph 1 does not allow for the constexpr specifier. This was not intended by the original proposal.

Proposed resolution (March, 2010):

  1. Change the definition of condition in 8.5 [stmt.select] paragraph 1 as follows:

  2. Insert the following text as a new paragraph at the end of 8.5 [stmt.select]:

  3. In the decl-specifier-seq of a condition, each decl-specifier shall be either a type-specifier or constexpr.