[libcxx-commits] [libcxx] [libcxx] Initialize vcruntime __std_exception_data in the exception copy ctor (PR #144329)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 4 03:07:58 PDT 2025
================
@@ -48,7 +48,7 @@ class exception { // base of all library exceptions
__data_._DoFree = true;
}
- exception(exception const&) _NOEXCEPT {}
+ exception(exception const&) _NOEXCEPT : __data_() {}
----------------
philnik777 wrote:
Is there a reason we don't do a proper copy? What happens if two TUs are linked where we provide our own implementation while the other is provided by vcruntime?
https://github.com/llvm/llvm-project/pull/144329
More information about the libcxx-commits
mailing list