1. This revision
This revision contains only wording for the changes approved by EWG:
By value capture of structured bindings
static and thread_local for structured binding declarations
Read a previous revision to know more.
2. Proposed wording
Change [expr.prim.lambda.capture]p8 (18.104.22.168) as follows:
If a lambda-expression explicitly captures an entity that is not odr-usable
or captures a structured binding (explicitly or implicitly), the program is ill-formed.
Change [expr.prim.lambda.capture]p12 (22.214.171.124) as follows:
A bit-field or a member of an anonymous union shall not be captured by reference.
Change [dcl.struct.bind]p1 (9.5) as follows:
If the assignment-expression in the initializer has array type
and no ref-qualifier is present,
e has type cv A
and each element is copy-initialized or direct-initialized from the corresponding element of the assignment-expression as specified by the form of the initializer.
Add a sentence to [dcl.struct.bind]p1 (9.5) as follows:
Change [dcl.dcl]p8 (10) as follows:
The decl-specifier-seq shall contain only the type-specifier
Change [dcl.stc]p3 (10.1.1) as follows:
It shall be applied only to the names of variables of namespace or block scope and to the names of static data members.
Change [dcl.stc]p4 (10.1.1) as follows:
specifier can be applied only to names of variables and functions and to anonymous unions.