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

Stephen Kelly steveire at gmail.com
Fri Oct 3 04:23:36 PDT 2014


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.





More information about the cfe-dev mailing list