http://llvm.org/bugs/show_bug.cgi?id=15991
Bug ID: 15991
Summary: lambdas + thread_local result in an assertion failure
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
This causes IRGen to assert:
int f() {
thread_local int n;
auto l = [] { return n; };
return l();
}
Viz:
lib/CodeGen/CGExpr.cpp:1861: clang::CodeGen::LValue
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const clang::DeclRefExpr *):
Assertion `isa<BlockDecl>(CurCodeDecl) && E->refersToEnclosingLocal()' failed.
--
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