<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 --- - Bogus warning about auto property synthesis"
   href="http://llvm.org/bugs/show_bug.cgi?id=16693">16693</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bogus warning about auto property synthesis
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>paul.q.stevenson@gmail.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>This simple fragment triggers the "auto property synthesis will not synthesize
property 'prop' because it is 'readwrite' but it will be synthesized 'readonly'
via another property [-Wobjc-property-synthesis]"

#import <Foundation/Foundation.h>

@interface Parent : NSObject
@property (readonly) int prop;
@end

@interface Child : Parent
@property (readwrite) int prop;
@end

@implementation Child
@synthesize prop;
@end

But the generated code *does* synthesize Child.prop correctly (a getter and a
setter). So what is the warning trying to convey in this case?

Also, it's not clear whether 'auto property synthesis' is intended to refer to
implicit synthesis (i.e. without the need for a @synthesize statement) or the
fact that the getter/setter are compiled automatically when you specify
@synthesize. It feels like it should be referring to the former, but in that
case the warning is even more bogus since there *is* an explicit @synthesize
and we're not relying on auto (implicit) synthesis.</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>