[llvm-bugs] [Bug 33552] New: Method not visible due to recent Modules change

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 21 14:45:11 PDT 2017


            Bug ID: 33552
           Summary: Method not visible due to recent Modules change
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bruno.cardoso at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 18686
  --> https://bugs.llvm.org/attachment.cgi?id=18686&action=edit


-- Foo.h
#import <Foundation/Foundation.h>

@interface NSIndexSet (Testing)
- (int)foo;

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.

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/20170621/6b65eb04/attachment-0001.html>

More information about the llvm-bugs mailing list