79783697

Date: 2025-10-06 12:42:02
Score: 1.5
Natty:
Report link

It turns out that the support for importing a standard library using the import statement is optional according to the standard, and the -fmodules flag causes Clang to use a legacy module support mechanism that breaks things in its toolchain. Instead, simply use the #include directive in global module fragments for standard headers, and everything should work fine. There is no need in some extra flags to support modules in the latest llvm releases except specifying used standard version.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Maksim Victorovich Fomin