[LLVMbugs] [Bug 12746] New: Assertion failure with nested blocks/lambdas
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun May 6 08:49:46 PDT 2012
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: unassignedclangbugs at nondot.org
ReportedBy: chmeeedalf at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list