[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 13:32:10 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:

I'm fine with that.

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


More information about the libcxx-commits mailing list