Created on 2022-11-03.00:00:00 last changed 1 month ago
Possible resolution:
Change in 7.5.6.3 [expr.prim.lambda.capture] paragraph 6 as follows:
auto z = [a = 42](int a) { return 1; }; // error: parameter and conceptual local variable have the same name
[Accepted as a DR at the November, 2022 meeting.]
The comment in the example in 7.5.6.3 [expr.prim.lambda.capture] paragraph 6 refers to "local variable", but should refer to init-capture instead.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2025-11-06 23:04:52 | admin | set | messages: + msg8242 |
| 2023-07-16 13:00:43 | admin | set | status: open -> c++23 |
| 2023-07-16 13:00:43 | admin | set | status: drwp -> open |
| 2023-02-18 18:43:04 | admin | set | status: dr -> drwp |
| 2022-11-25 05:14:04 | admin | set | status: nb -> dr |
| 2022-11-08 07:09:46 | admin | set | status: open -> nb |
| 2022-11-08 07:09:46 | admin | set | status: open -> open |
| 2022-11-08 07:09:46 | admin | set | status: open -> open |
| 2022-11-08 07:09:46 | admin | set | status: open -> open |
| 2022-11-07 13:57:49 | admin | set | status: nb -> open |
| 2022-11-07 13:57:49 | admin | set | status: nb -> nb |
| 2022-11-07 13:57:49 | admin | set | status: nb -> nb |
| 2022-11-03 00:00:00 | admin | create | |