[LLVMbugs] [Bug 21626] clang failed to compile Objective-C++ code with -fmodules

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 23 12:16:10 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21626

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Richard Smith <richard-llvm at metafoo.co.uk> ---
The next problem is with the CoreFoundation module map. Again, this is an Apple
problem not a Clang one. The reason why this "works" with XCode 6.1 is that
-fmodules does nothing in C++ mode there.

Ultimately, the problem is that the module maps you're using have not been made
to work with C++, and they don't.

The point of [extern_c] is twofold: (1) it builds the target module in an
implicit extern "C" context (which affects its semantics in lots of ways), and
(2) it allows the module to be imported in an extern "C" context. You don't
want (2) without (1), because that can lead to silent and hard-to-diagnose
build breaks.

-- 
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/20141123/de061a8c/attachment.html>


More information about the llvm-bugs mailing list