[LLVMbugs] [Bug 7643] New: Assigning a +1 ref value to a retain/copy property should warn
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jul 14 13:00:59 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7643
Summary: Assigning a +1 ref value to a retain/copy property
should warn
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: tjw at omnigroup.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5222)
--> (http://llvm.org/bugs/attachment.cgi?id=5222)
Test case
A common error that clang-sa misses is:
foo.property = [[Bar alloc] init];
If 'property' is marked retain or copy, the assignment will cause a leak.
--
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