https://bugs.llvm.org/show_bug.cgi?id=40771
Bug ID: 40771
Summary: Segfault in SROA while using the overload deduction
guide pattern and copy capture
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: spyraaleksan...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
Godbolt demonstrating the issue: https://godbolt.org/z/Vs3QZe
Clang options: -std=c++17 -O1
#include <string>
template <class... Ts> struct ctad : Ts... {};
template <class... Ts> ctad(Ts...)->ctad<Ts...>;
void crash()
{
std::string s;
ctad c {[s](short){}, [s](long){}};
}
--
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