Decomposition declarator bindings cannot be used in lambda captures #49430
Labels
bugzilla
Issues migrated from bugzilla
c++17
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
invalid
Resolved as invalid, i.e. not a bug
Extended Description
Consider the code at https://godbolt.org/z/qa8q75vG6
The first sample (with struct S) is even taken from clang/test/SemaCXX/cxx1z-decomposition.cpp
The problem seems to be that in SemaLambda.cpp, the code requires the LookupResult to return a VarDecl, but it returns a BindingDecl.
The text was updated successfully, but these errors were encountered: