[LLVMbugs] [Bug 10164] Issue with objc_method_family(init) in class extension.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 6 14:03:22 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=10164

Ted Kremenek <kremenek at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Ted Kremenek <kremenek at apple.com> 2011-12-06 16:03:22 CST ---
I dont' see the issue here.

'self' has type 'Foo*'.  With the instancetype feature, the method should
return 'Foo*', and thus no warning should be issued.  Without the instancetype
feature (without the 'init' attribute), this is still correct behavior, because
'Foo*' can be matched to 'id'.  'id' trumps the type checking.  That's how
Objective-C has worked for a long time.

-- 
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