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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs