[clang] [C++20] Destroying delete can cause a type to be noexcept when deleting (PR #118687)

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 5 11:34:57 PST 2024


zygoloid wrote:

Hm, the issue raised in #118800 is relevant here too, isn't it? If the destructor is virtual, we want to look at its exception specification, not the one on the destroying operator delete, because `delete p` actually invokes the virtual deleting destructor, not the statically selected deallocation function.

Maybe it's best to handle that in #118800, but I think it basically means the changes we made here aren't right :(

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


More information about the cfe-commits mailing list