https://bugs.llvm.org/show_bug.cgi?id=44848
Bug ID: 44848
Summary: C++20 template lambda calling another template lambda
causes segfault
Product: clang
Version: 9.0
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++2a
Assignee: unassignedclangb...@nondot.org
Reporter: bruce.ste...@mail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
link: https://godbolt.org/z/C7dLsL
Clang crashes when compiling the code below:
int main() {
auto lambda1 = [&]<bool B>() {
};
auto lambda2 = [&]<bool B>() {
lambda1.operator()<B>();
};
lambda2.operator()<true>();
return 0;
}
It works fine with g++.
--
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