Re: [PATCH] testsuite: Add noexcept(false) to throwing destructor

2020-10-23 Thread Nathan Sidwell
On 10/23/20 7:46 AM, Jonathan Wakely wrote: I think this test is intended to check this property of the C++ standard: "If a destructor directly invoked by stack unwinding exits via an exception, std::terminate is invoked." [except.throw] Since C++11 any exception escaping a destructor will call

[PATCH] testsuite: Add noexcept(false) to throwing destructor

2020-10-23 Thread Jonathan Wakely via Gcc-patches
I think this test is intended to check this property of the C++ standard: "If a destructor directly invoked by stack unwinding exits via an exception, std::terminate is invoked." [except.throw] Since C++11 any exception escaping a destructor will call std::terminate, so the test would terminate e