[llvm-bugs] [Bug 50086] New: Decomposition declarator bindings cannot be used in lambda captures
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 22 21:31:12 PDT 2021
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: unassignedclangbugs at nondot.org
Reporter: tbaeder at redhat.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210423/24cd904d/attachment.html>
More information about the llvm-bugs
mailing list