[all-commits] [llvm/llvm-project] ccca93: Don't allow structured binding declarations to dec...
Richard Smith via All-commits
all-commits at lists.llvm.org
Fri Oct 23 16:28:46 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ccca93b5a2cb284dcdfecd34db1ca14632d6a1c1
https://github.com/llvm/llvm-project/commit/ccca93b5a2cb284dcdfecd34db1ca14632d6a1c1
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2020-10-23 (Fri, 23 Oct 2020)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/SemaCXX/cxx1z-decomposition.cpp
Log Message:
-----------
Don't allow structured binding declarations to decompose a
lambda-expression's captures.
The built-in structured binding rules for classes require that all
fields can be accessed by name, and the fields introduced for lambda
captures are unnamed, so decomposing a capturing lambda is ill-formed.
More information about the All-commits
mailing list