| Issue |
71364
|
| Summary |
C++20 modules available but `__cpp_modules` not defined
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
boris-kolpackov
|
While Clang now enables C++20 modules by default with `-std=c++20` and later, it does not appear to define the `__cpp_modules` feature test macros (which should have the value of `201907L`; see https://en.cppreference.com/w/cpp/feature_test). I've tested this with up to Clang 18 pre-release (`20231102103655+18839aec4ed1`).
Is there a reason for omitting this macro for now or is it an oversight that could be fixed? In `build2` we currently define this macro on the command line which adds quite a bit of noise.
@iains @ChuanqiXu9 @dwblaikie
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs