You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An init-capture inhabits the scope of the lambda-expression's compound-statement. An init-capture without ellipsis behaves as if it declares and explicitly captures a variable of the form “auto init-capture ;”, except that:
[...]
Assume we have an init-capturex = x, the behavior would be as if it looks like
auto x = x;
According to [basic.scope.pdecl] p1 and [dcl.spec.auto.general] p11, the specified behavior is ill-formed.
The text was updated successfully, but these errors were encountered:
xmh0511
changed the title
[expr.prim.lambda.capture] p6 The specified behavior of a init-capture is incorrect
[expr.prim.lambda.capture] p6 The specified behavior of an init-capture is incorrect
Sep 23, 2021
Assume we have an init-capture
x = x
, the behavior would be as if it looks likeauto x = x;
According to [basic.scope.pdecl] p1 and [dcl.spec.auto.general] p11, the specified behavior is ill-formed.
The text was updated successfully, but these errors were encountered: