[llvm-bugs] [Bug 51758] Destructor of std::any should not propagate exceptions

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 19 11:50:49 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51758

Johel Ernesto Guerrero Peña <johelegp at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Johel Ernesto Guerrero Peña <johelegp at gmail.com> ---
You're right about `std::any` being fine. Turns out my first example was first
throwing on the temporary used to construct the `std::any` object:
https://godbolt.org/z/39bhvW4Yf.

However, the runtime requirement on not throwing has no effect on whether it
statically satisfies `std::destructible`.

Thank you.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210919/5f6e75c6/attachment-0001.html>


More information about the llvm-bugs mailing list