[cfe-dev] How do I try out C++ modules with clang?

Nikola Smiljanic popizdeh at gmail.com
Fri Oct 3 05:32:42 PDT 2014


http://clang.llvm.org/docs/Modules.html should have all the answers, and if
it doesn't please complain so that we can fix it :)

On Fri, Oct 3, 2014 at 9:23 PM, Stephen Kelly <steveire at gmail.com> wrote:

>
> Hello,
>
> SVN revision 218614 documented that C++ modules works in clang.
>
> Using the llvm apt repo on Ubuntu 14.04, I get this result:
>
> $ clang++-3.6 --version
> Ubuntu clang version 3.6.0-svn218873-1~exp1 (trunk) (based on LLVM 3.6.0)
> Target: x86_64-pc-linux-gnu
> Thread model: posix
>
> $ cat modules.cpp
>
> @import std;
>
> $ clang++-3.6 -std=c++1z -fmodules modules.cpp
> modules.cpp:2:1: error: expected unqualified-id
> @import std;
> ^
> 1 error generated.
>
>
>
> How do I try out clang modules support?
>
> Thanks,
>
> Steve.
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141003/574d5c02/attachment.html>


More information about the cfe-dev mailing list