[LLVMbugs] [Bug 21072] New: clang should give a warning about Obj-C categories not autosynthesizing properties

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 25 11:41:05 PDT 2014


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

            Bug ID: 21072
           Summary: clang should give a warning about Obj-C categories not
                    autosynthesizing properties
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mr_noodle at noodlesoft.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13087
  --> http://llvm.org/bugs/attachment.cgi?id=13087&action=edit
source file demonstrating the problem

Compile the attached program. The main class (Foo) defines a readonly property.
That property is redefined in a category as read-write. Try to call the set
method, though, bombs with -doesNotRecognizeSelector:, indicating that the
compiler did not synthesize the setter method. Changing the category to a class
extension does fix things but I feel the compiler should have emitted a warning
in this case.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140925/5cee0d70/attachment.html>


More information about the llvm-bugs mailing list