[llvm-bugs] [Bug 52252] New: clang totally broken when trailing return type combine with decltype lambda
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 21 06:59:15 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=52252
Bug ID: 52252
Summary: clang totally broken when trailing return type combine
with decltype lambda
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: hewillk at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
template<int N>
using R = decltype([] { return 0; }());
template <int N>
auto you_can_see_me() -> R<N> {
return {};
}
int main() {
you_can_see_me<0>();
}
https://godbolt.org/z/or1qhYMTq
--
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/20211021/9d17bdcb/attachment.html>
More information about the llvm-bugs
mailing list