[libcxx-commits] [libcxx] [libc++] Fix initialization-order-fiasco with iostream.cpp constructors (PR #126995)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 15 11:13:54 PST 2025


================
@@ -38,13 +38,20 @@ union stream_data {
 #define CHAR_MANGLING_wchar_t "_W"
 #define CHAR_MANGLING(CharT) CHAR_MANGLING_##CharT
 
+#ifdef _LIBCPP_COMPILER_CLANG_BASED
+#  define STRING_DATA_CONSTINIT constinit
----------------
philnik777 wrote:

Hmm. I'll try to figure something out tomorrow for this. Either a bug against one of the compilers or some code changes should happen here. I guess a CWG issue would also be possible.

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


More information about the libcxx-commits mailing list