<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 - Method not visible due to recent Modules change"
href="https://bugs.llvm.org/show_bug.cgi?id=33552">33552</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Method not visible due to recent Modules change
</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>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>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bruno.cardoso@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18686" name="attach_18686" title="Reproducer">attachment 18686</a> <a href="attachment.cgi?id=18686&action=edit" title="Reproducer">[details]</a></span>
Reproducer
303322
-- Foo.h
#import <Foundation/Foundation.h>
@interface NSIndexSet (Testing)
- (int)foo;
@end
static inline int test(NSIndexSet *obj) {
return [obj foo];
}
-- module.modulemap
module Foo {
header "Foo.h"
export *
}
This used to work before r303322, but now fails:
$ rm -rf tmp;
$ echo '@import Foo;' | ~/Dev/install/clang-release/bin/clang
-fmodules-cache-path=tmp -fmodules -x objective-c -fobjc-arc -fsyntax-only -I.
-isysroot "$(xcrun -show-sdk-path)" -
While building module 'Foo' imported from <stdin>:1:
In file included from <module-includes>:1:
./Foo.h:8:15: error: no visible @interface for 'NSIndexSet' declares the
selector 'foo'
return [obj foo];
~~~ ^~~
<stdin>:1:9: fatal error: could not build module 'Foo'
@import Foo;
~~~~~~~^~~
2 errors generated.</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>