<html>
<head>
<base href="https://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 --- - Incorrect compiler error"
href="https://llvm.org/bugs/show_bug.cgi?id=28058">28058</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect compiler error
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rolfbjarne@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16496" name="attach_16496" title="Test case">attachment 16496</a> <a href="attachment.cgi?id=16496&action=edit" title="Test case">[details]</a></span>
Test case
Compiling the attached test code with:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk
-arch armv7 bug.m
<span class="quote">> bug.m:10:17: warning: 'NSObject' may not respond to 'initWithCoder:'
> return [super initWithCoder:p0];
> ~~~~~ ^
> bug.m:10:17: error: 'initWithCoder:' is unavailable
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:23:1: note: 'initWithCoder:' has been explicitly marked unavailable here
> - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
> ^
> 1 warning and 1 error generated.> </span >
I'm not sure if the code should actually show an error or not, but I am sure
there's nothing related to UIActivityViewController.h at all in the code
snippet (so if the code is invalid, the error message itself is still
incorrect).
<span class="quote">> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version</span >
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
(from Xcode 7.3)</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>