Title
constexpr in conditions
Status
c++11
Section
8.5 [stmt.select]
Submitter
Gabriel Dos Reis

Created on 2009-08-02.00:00:00 last changed 96 months ago

Messages

Date: 2010-08-23.00:00:00

[Voted into WP at August, 2010 meeting.]

Date: 2010-03-15.00:00:00

Proposed resolution (March, 2010):

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

    • condition:
        expression
        attribute-specifieropt typedecl-specifier-seq declarator = initializer-clause
        attribute-specifieropt typedecl-specifier-seq declarator braced-init-list
  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.
Date: 2009-08-02.00:00:00

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.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetstatus: wp -> fdis
2010-11-29 00:00:00adminsetstatus: dr -> wp
2010-08-23 00:00:00adminsetmessages: + msg2908
2010-08-23 00:00:00adminsetstatus: ready -> dr
2010-03-29 00:00:00adminsetstatus: review -> ready
2010-02-16 00:00:00adminsetmessages: + msg2530
2010-02-16 00:00:00adminsetstatus: drafting -> review
2009-11-08 00:00:00adminsetstatus: open -> drafting
2009-08-02 00:00:00admincreate