Closed
Description
Bugzilla Link | 50086 |
Version | trunk |
OS | Linux |
CC | @zygoloid |
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.