Skip to content

C++ module implementation is illegal #3091

@avikivity

Description

@avikivity

Compiling module support with modern clang fails. Clang complains that module cannot be in a #ifdef.

We should have an extra file that imports the headers as non-modules and re-exports them as modules, following libstdc++ [1].

[1] https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/src/c%2B%2B23/std.cc.in

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions