https://bugs.llvm.org/show_bug.cgi?id=50086

            Bug ID: 50086
           Summary: Decomposition declarator bindings cannot be used in
                    lambda captures
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++17
          Assignee: unassignedclangb...@nondot.org
          Reporter: tbae...@redhat.com
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to