[clang] Reland "[clang][modules-driver] Add support for C++ named modules and import std" (2nd attempt) (PR #194475)

Mikael Holmen via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 28 00:52:12 PDT 2026


mikaelholmen wrote:

Is there some race-condition going on for the
 clang/test/Driver/modules-driver-both-modules-types.cpp
testcase?

I've randomly seen 
```
clang: ../../clang/lib/DependencyScanning/InProcessModuleCache.cpp:148: virtual std::error_code {anonymous}::InProcessModuleCache::write(llvm::StringRef, llvm::MemoryBufferRef, off_t&, time_t&): Assertion `Entry.Buffer && *Entry.Buffer == Buffer && "Wrote the same PCM with different contents"' failed.
```
in one of our downstream build bots when running that testcase.

https://github.com/llvm/llvm-project/pull/194475


More information about the cfe-commits mailing list