<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang should give a warning about Obj-C categories not autosynthesizing properties"
href="http://llvm.org/bugs/show_bug.cgi?id=21072">21072</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang should give a warning about Obj-C categories not autosynthesizing properties
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mr_noodle@noodlesoft.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13087" name="attach_13087" title="source file demonstrating the problem">attachment 13087</a> <a href="attachment.cgi?id=13087&action=edit" title="source file demonstrating the problem">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>