<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 --- - Failed to recognize init selector when using precompiled header"
   href="http://llvm.org/bugs/show_bug.cgi?id=21587">21587</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Failed to recognize init selector when using precompiled header
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </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>191919@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>Created <span class=""><a href="attachment.cgi?id=13355" name="attach_13355" title="The build environment">attachment 13355</a> <a href="attachment.cgi?id=13355&action=edit" title="The build environment">[details]</a></span>
The build environment

clang svn trunk (222117 as I am submitting this bug) failed gave the following
message

```
1.mm:7:23: error: 'init' is unavailable
        return [[self alloc] init];
                             ^
/System/Library/Frameworks/Foundation.framework/Headers/NSLocale.h:39:1: note:
'init' has been explicitly marked unavailable here
- (instancetype)init NS_UNAVAILABLE;     /* do not invoke; not a valid
initializer for this class */
^
1 error generated.
```

when compiling a trivial source code like this when using PCH.


```
@interface Bug : NSResponder
@end

@implementation Bug

+ (instancetype)bug {
    return [[self alloc] init];
}

@end
```

The code should be ok and is compilable by svn 21xxxx.

I have attached the source codes and Makefile, please change /opt/bin/clang as
need.</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>