<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 --- - Warn about incomplete implementation of declared properties already declared in base class"
   href="http://llvm.org/bugs/show_bug.cgi?id=16161">16161</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Warn about incomplete implementation of declared properties already declared in base class
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.1
          </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>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>negm-awad@cocoading.de
          </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>A. Steps to reproduce
1. Define a base class with a read-only property
@interface BaseClass : NSObject
@property (readonly) id property;
@end

2. Define a protocol that contains a read-write property with the same name
@protocol Protocol
@property (readwrite) id property;
@end

3. Derive from BaseClass importing the protocol
@interface DerivedClass : BaseClass <Protocol>
@end

4. Autosynthesize that property (I know, that's illegal, look below)
@implementation DerivedClass
@end

B. Existing behaviour
Step 4 is illegal. Without the readonly property in the base class, I will get
a warning:
Auto property synthesis will not synthesize property declared in a protocol.
(Documented behavior)
With the readonly property in the base class, I neither get a warning about
auto synthesize nor about incomplete implementation.

C. Expected behavior
One of the warnings above.

Thank you!</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>