http://llvm.org/bugs/show_bug.cgi?id=8690
Summary: Block that inherits 'self' from enclosing block can
get wrong value (ARM)
Product: new-bugs
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=5828)
--> (http://llvm.org/bugs/attachment.cgi?id=5828)
Testcase
In an obj-c method, when a block creates and calls a nested block, and the
nested block inherits 'self' from its parent, the value of 'self' in the nested
block may be different than the value in the enclosing block. So far this is
only reproducible when compiling for the iPad (e.g. ARM), and unrelated changes
to the surrounding code can cause this bug to appear and disappear. I've
attached a reduced testcase - it's an Xcode project, as it requires installing
onto an iPad to reproduce. ViewController.m contains the relevant source.
This was compiled using Apple clang version 1.6 (tags/Apple/clang-70) and run
on an iPad running iOS 4.2.1.
--
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