Syntax of attribute-specifiers in lambdas
7.5.5 [expr.prim.lambda]
Peter Sommerlad

Created on 2010-03-23.00:00:00 last changed 96 months ago


Date: 2010-11-15.00:00:00

[Voted into the WP at the November, 2010 meeting.]

Date: 2010-08-15.00:00:00

Proposed resolution (August, 2010):

  1. Change the grammar in 7.5.5 [expr.prim.lambda] paragraph 1 as follows:

    • lambda-declarator:
        ( parameter-declaration-clause ) attribute-specifieropt mutableopt
          exception-specificationopt attribute-specifieropt trailing-return-typeopt
  2. Change 7.5.5 [expr.prim.lambda] paragraph 5 as follows:

  3. ...Any attribute-specifiers appearing immediately after the lambda-expression's parameter-declaration-clause appertain An attribute-specifier in a lambda-declarator appertains to the type of the corresponding function call operator...
Date: 2010-08-23.00:00:00
N3092 comment CH 4

The adoption of paper N3067 at the March, 2010 meeting moved the position of the optional attribute-specifier in a function declarator from immediately following the parameter-declaration-clause to after the exception-specification. However, the grammar in 7.5.5 [expr.prim.lambda] paragraph 1 and the verbal description in paragraph 5 still have the attribute-specifier in a lambda-declarator at its old position. These should be updated to reflect the new function declarator syntax.

Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetstatus: dr -> fdis
2010-11-29 00:00:00adminsetmessages: + msg3151
2010-11-29 00:00:00adminsetstatus: ready -> dr
2010-08-23 00:00:00adminsetmessages: + msg2764
2010-08-23 00:00:00adminsetstatus: open -> ready
2010-03-23 00:00:00admincreate