http://llvm.org/bugs/show_bug.cgi?id=19249
Bug ID: 19249
Summary: lambda crash (hard to explain without source)
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
#include <functional>
int ttt(std::function<void()> const &f) {
return 0;
}
int main() {
auto x = ttt([&x] {});
return 0;
}
The most important that you will try to catch to closure *auto* variable
returned from function where you pass lambda.
So this code compiling without problem:
int main() {
int x = ttt([&x] {});
return 0;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs