<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/88652>88652</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            import of module 'std' imported non C++20 importable modules
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          TheRustifyer
      </td>
    </tr>
</table>

<pre>
    Building a project on a `GitHub` virtual machine with `llvm-18`, I found the following build error:

```
test test_clang_full_process ... [2024-04-14T09:23:44Z DEBUG zork::utils::reader] Searching for Zork++ configuration files...
[2024-04-14T09:23:44Z TRACE zork::worker] Config files found: ["/tmp/.tmpXI187w/clang_example/zork_clang.toml"]
[2024-04-14T09:23:44Z INFO  zork::compiler] Building the module interfaces and partitions...
[2024-04-14T09:23:44Z INFO  zork::compiler] Building the module implementations...
[2024-04-14T09:23:44Z INFO  zork::compiler] Building the source files...
[2024-04-14T09:23:44Z INFO  zork::compiler] Generating the main command line...
[2024-04-14T09:23:44Z INFO zork::cli::output::commands] Proceeding to execute the generated commands...
[2024-04-14T09:23:44Z TRACE zork::cli::output::commands] [clang] - Executing command => "clang++ -std=c++2b -stdlib=libc++ -fimplicit-modules -x c++-module --precompile -fimplicit-module-maps -fprebuilt-module-path=/tmp/.tmpXI187w/out/clang/modules/interfaces -o /tmp/.tmpXI187w/out/clang/modules/interfaces/math.pcm /tmp/.tmpXI187w/clang_example/ifc/math.cppm"
[2024-04-14T09:23:44Z TRACE zork::cli::output::commands] [clang] - Executing command => "clang++ -std=c++2b -stdlib=libc++ -fimplicit-modules -c -fimplicit-module-maps -o /tmp/.tmpXI187w/out/clang/modules/implementations/math.o -fmodule-file=/tmp/.tmpXI187w/out/clang/modules/interfaces/math.pcm /tmp/.tmpXI187w/clang_example/src/math.cpp"
warning: the form '-fmodule-file=<BMI-path>' is deprecated for standard C++ named modules;consider to use '-fmodule-file=<module-name>=<BMI-path>' instead [-Weager-load-cxx-named-modules]
1 warning generated.
[2024-04-14T09:23:44Z TRACE zork::cli::output::commands] [clang] - Executing command => "clang++ -std=c++2b -stdlib=libc++ -fimplicit-modules -c -fimplicit-module-maps -o /tmp/.tmpXI187w/out/clang/modules/implementations/math2.o -fmodule-file=/tmp/.tmpXI187w/out/clang/modules/interfaces/math.pcm /tmp/.tmpXI187w/clang_example/src/math2.cpp"
warning: the form '-fmodule-file=<BMI-path>' is deprecated for standard C++ named modules;consider to use '-fmodule-file=<module-name>=<BMI-path>' instead [-Weager-load-cxx-named-modules]
1 warning generated.
[2024-04-14T09:23:44Z TRACE zork::cli::output::commands] [clang] - Executing command => "clang++ -std=c++2b -c -stdlib=libc++ -fimplicit-modules -fimplicit-module-maps -fprebuilt-module-path=/tmp/.tmpXI187w/out/clang/modules/interfaces -o /tmp/.tmpXI187w/out/clang/sources/main.o /tmp/.tmpXI187w/clang_example/main.cpp"
/tmp/.tmpXI187w/clang_example/main.cpp:5:5: error: import of module 'std' imported non C++20 importable modules
    5 |     import std;
      |     ^
```

I can confirm that such code and build flags works on `Clang 15`, `Clang 16` and `Clang 17`.

Tell me if I can provide more details in any form
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsV0uP2zYQ_jX0ZSBBoh62Dz74sU730AfSLVrkEtDUyGZDkQJJxZv--mL08LpJNsmmDbAtCuzKEkXO983MNxRHeK-OBnHFig0rdjPRhZN1q7sTvux8UPU7dLODrd6tNp3SlTJHENA6-zvKANaAAFYmL1T4rjuwMoG3yoVOaGiEPCmDcFbhRDO0fttE6YKVCeNbuIXadqaCcEKordb2THYPBADonHUsW7Nkx5LpWibjX_8Y0Aegy2uphTm-rjutX7fOSvQe4jgGVmx4wvMoyaM0v0uWLFvzjGXrPH8Fu5vNLy_gD-veEEi27oLSfrh1KCp0rNjBzygcOXCE2jp4RZP5hvENSGtqdeycCMoaqJVGH8fxyPITqHcv19ubK9SzdW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