https://bugs.kde.org/show_bug.cgi?id=406842

--- Comment #3 from Lukas Kahnert <openproggerfr...@gmail.com> ---
Modules TS syntax itself is finished AFAIK. clang recently also enabled the
-fmodules-ts flag implicitly if -std=c++2a is used.

On clang 8.0 it's still unstable and segfaults in some use-cases, but with the
C++20 release this situation will be better in the future.
Currently converting header files to the Modules TS syntax and additional
compile flags works.

I try to make a small project and post the link here asap.

I would also provide some additional info how modules are compiled under clang.
Sadly the docs talk mostly about clang-exclusive modules which differ from
C++20:

Under clang c++ modules are source files(*.cppm), which can also provide
declarations and in this case work like header files too.
The source file, which imports a module, needs the path to a module interface
unit(*.pcm), which provides the required declarations for compilation.
A module interface unit is very similar to precompiled headers but with the
difference that clang take only the declarations that are marked as 'export'
and precompiles them as *.pcm file.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to