[libcxx-commits] [libcxx] [libc++] Add MSVC's implementation of `exception_ptr` for Windows (PR #94977)

Nico Weber via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 17 10:54:39 PDT 2026


nico wrote:

We're seeing

```
In file included from ../../third_party/libc++/src/src/exception.cpp:16:
../../third_party/libc++/src/src\support/runtime/exception_pointer_msvc.ipp(149,38): error: implicit conversion between pointer-to-function and pointer-to-object is a Microsoft extension [-Werror,-Wmicrosoft-cast]
  149 |     __call_member_function_2(__dest, __copy_func, __adjusted, 1);
      |                                      ^~~~~~~~~~~
../../third_party/libc++/src/src\support/runtime/exception_pointer_msvc.ipp(151,38): error: implicit conversion between pointer-to-function and pointer-to-object is a Microsoft extension [-Werror,-Wmicrosoft-cast]
  151 |     __call_member_function_1(__dest, __copy_func, __adjusted);
      |                                      ^~~~~~~~~~~
../../third_party/libc++/src/src\support/runtime/exception_pointer_msvc.ipp(207,77): error: implicit conversion between pointer-to-function and pointer-to-object is a Microsoft extension [-Werror,-Wmicrosoft-cast]
  207 |           __call_member_function_0(__cpp_eh_record.params.pExceptionObject, __throw_info->pmfnUnwind);
      |                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
```

with this.

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


More information about the libcxx-commits mailing list