Title 1822. Lookup of parameter names in lambda-expressions
Status open Section 5.1.5 [expr.prim.lambda]
Submitter Steve Clamage

Created on 2013-12-10.00:00:00 by admin, last changed by admin.

msg4776 (view) Date: 2017-02-06.00:00:00

According to 5.1.5 [expr.prim.lambda] paragraph 7, names appearing in the compound-statement of a lambda-expression are looked up in the context of the lambda-expression, ignoring the fact that the compound-statement will be transformed into the body of the closure type's function operator. This leaves unspecified how the lambda-expression's parameters are found by name lookup. Presumably the parameters hide the corresponding names from the surrounding scope, but this needs to be specified.

Date User Action Args
2017-02-06 00:00:00adminsetsection: 5.1.2 [expr.prim.lambda] -> 5.1.5 [expr.prim.lambda]
2013-12-10 00:00:00admincreate