http://llvm.org/bugs/show_bug.cgi?id=17871
Bug ID: 17871
Summary: Crash with unknown/invalid type, lambda closure and
std::function
Product: clang
Version: 3.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Hi!
The following code makes clang crash when compiled with clang++ -std=c++11.
Since this should be easily reproducible, I will add the preprocessed source
and run script on request.
#include <functional>
int main() {
std::function<void()> fnTest;
for(auto i : undeclared) {
fnTest = [i] {};
}
}
--
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