<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 --- - The objc_designated_initializer attribute generates a warning even if the init method can never return."
   href="http://llvm.org/bugs/show_bug.cgi?id=20185">20185</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>The objc_designated_initializer attribute generates a warning even if the init method can never return.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>jim.correia@pobox.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=12732" name="attach_12732" title="Source code demonstrating problem">attachment 12732</a> <a href="attachment.cgi?id=12732&action=edit" title="Source code demonstrating problem">[details]</a></span>
Source code demonstrating problem

Build the attached code.

I don't expect -[ColoredBox initWithSideLength:] to generate a warning/error
since the method can never return (the call has been rejected and should be
fixed at development-time.)

We use this idiom quite a but when a subclass shouldn't be initialized directly
with the superclass's designated initializer.

It would be great if clang allowed us to use the objc_designated_initializer
attribute without the extraneous warning.

% clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix</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>