http://llvm.org/bugs/show_bug.cgi?id=12746
Bug #: 12746
Summary: Assertion failure with nested blocks/lambdas
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 8497
--> http://llvm.org/bugs/attachment.cgi?id=8497
Test file that demonstrates the problem
When compiling the attached file (c++11, blocks), I see the following assertion
failure:
Assertion failed: (isa<BlockDecl>(CurCodeDecl) && E->refersToEnclosingLocal()),
function EmitDeclRefLValue, file CGExpr.cpp, line 1578.
I tracked it down to the nested lambda accessing any variable in function
scope, in this case argv[]. Changing the capture to '=' instead of '&' doesn't
change anything.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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