Skip to content

[C++20] [Modules] Handling merging predefined decls from std - #219151

Merged
ChuanqiXu9 merged 1 commit into
llvm:mainfrom
ChuanqiXu9:MergeStdAlignFromExternC
Aug 27, 2026
Merged

ChuanqiXu9 merged 1 commit into
llvm:mainfrom
ChuanqiXu9:MergeStdAlignFromExternC

Conversation

@ChuanqiXu9

@ChuanqiXu9 ChuanqiXu9 commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Close #218152

Close #214354

This was only reported in windows as MSSTL chose to implement std module by wrapping the STL into extern "C++", which is different from libstdc++ and libc++.

But technically this is not specific to windows and we're able to preoduce it in linux although we won't face it in linux.

Close llvm#218152

This was only reported in windows as MSSTL chose to implement
std module by wrapping the STL into extern "C++", which is
different from libstdc++ and libc++.

But technically this is not specific to windows and we're
able to preoduce it in linux although we won't face it
in linux.
@ChuanqiXu9 ChuanqiXu9 self-assigned this Aug 27, 2026
@ChuanqiXu9 ChuanqiXu9 added clang:modules C++20 modules and Clang Header Modules skip-precommit-approval PR for CI feedback, not intended for review labels Aug 27, 2026
@llvmorg-github-actions llvmorg-github-actions Bot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Aug 27, 2026
@ChuanqiXu9
ChuanqiXu9 merged commit 5277447 into llvm:main Aug 27, 2026
17 checks passed
@frederick-vs-ja

Copy link
Copy Markdown
Contributor

I think we should backport this to LLVM 23.

@frederick-vs-ja frederick-vs-ja added this to the LLVM 23.x Release milestone Aug 31, 2026
@frederick-vs-ja

Copy link
Copy Markdown
Contributor

/cherry-pick 5277447

@llvmbot

llvmbot commented Aug 31, 2026

Copy link
Copy Markdown
Member

/pull-request #219865

tru pushed a commit that referenced this pull request Sep 1, 2026
Close #218152

This was only reported in windows as MSSTL chose to implement std module
by wrapping the STL into extern "C++", which is different from libstdc++
and libc++.

But technically this is not specific to windows and we're able to
preoduce it in linux although we won't face it in linux.

(cherry picked from commit 5277447)
wlemkows pushed a commit to wlemkows/llvm-project that referenced this pull request Sep 4, 2026
…9151)

Close llvm#218152

This was only reported in windows as MSSTL chose to implement std module
by wrapping the STL into extern "C++", which is different from libstdc++
and libc++.

But technically this is not specific to windows and we're able to
preoduce it in linux although we won't face it in linux.
asudarsa-qti pushed a commit to asudarsa-qti/llvm-project that referenced this pull request Sep 4, 2026
…9151)

Close llvm#218152

This was only reported in windows as MSSTL chose to implement std module
by wrapping the STL into extern "C++", which is different from libstdc++
and libc++.

But technically this is not specific to windows and we're able to
preoduce it in linux although we won't face it in linux.
Orphis added a commit to Orphis/hermetic-cpp-cmake that referenced this pull request Sep 26, 2026
* Index: LLVM 23.1.2 (llvm-23.1.2-1), now the default

Imported from hermeticbuild/hermetic-llvm 39e71f9 ("Update LLVM to
23.1.2 and use new prebuilts"): the llvm-23.1.2-1 prebuilts for every
host and the 23.1.2 source archive for runtime sets. 23.1.2 carries
llvm/llvm-project#219151, which fixes building the MSVC STL's std module
(llvm/llvm-project#218152, a 23.1.0 regression).

scripts/import_hermetic_llvm_data.py kept only what it imports in
runtime_sources.json and dropped our own mingw entry; it now keeps
entries it does not import.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Selection test: latest is 23.1.2

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:modules C++20 modules and Clang Header Modules clang Clang issues not falling into any other category skip-precommit-approval PR for CI feedback, not intended for review

Projects

3 participants