<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - [regression] erroneous "-Werror=nsconsumed-mismatch is currently enabled, but was not in the PCH file" when importing module"
href="https://bugs.llvm.org/show_bug.cgi?id=35815">35815</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[regression] erroneous "-Werror=nsconsumed-mismatch is currently enabled, but was not in the PCH file" when importing module
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</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>enhancement
</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>arphaman@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The following sample illustrates the problem:
$ cat Inputs/module.map
module mod2 {
header "mod2.h"
}
$ cat Inputs/mod2.h
@interface X2
@end
$ cat repr.m
@interface I
- (void)override;
@end
@implementation I
- (void)override { }
@end
@interface Sub
@end
@implementation Sub
- (void)override { }
@end
@import mod2;
$ clang -c -fmodules -I Inputs -fobjc-arc repr.m
repr.m:1:12: warning: class 'I' defined without specifying a base class
[-Wobjc-root-class]
@interface I
^
repr.m:1:13: note: add a super class to fix this problem
@interface I
^
repr.m:13:12: warning: class 'Sub' defined without specifying a base class
[-Wobjc-root-class]
@interface Sub
^
repr.m:13:15: note: add a super class to fix this problem
@interface Sub
^
error: -Werror=nsconsumed-mismatch is currently enabled, but was not in the PCH
file
2 warnings and 1 error generated.
The error should not be presented. This is a regression after r313717.</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>