[llvm-bugs] [Bug 35815] New: [regression] erroneous "-Werror=nsconsumed-mismatch is currently enabled, but was not in the PCH file" when importing module
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 3 15:46:18 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=35815
Bug ID: 35815
Summary: [regression] erroneous "-Werror=nsconsumed-mismatch is
currently enabled, but was not in the PCH file" when
importing module
Product: clang
Version: 6.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: arphaman at gmail.com
CC: llvm-bugs at lists.llvm.org
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180103/053cd93f/attachment.html>
More information about the llvm-bugs
mailing list