https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83400
Jason Merrill changed:
What|Removed |Added
CC||jason at gcc dot gnu.org
See A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83400
--- Comment #3 from Mathias Stearn ---
This is related to https://wg21.link/CWG2219
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83400
--- Comment #2 from Jonathan Wakely ---
If the destructor uses a dynamic exception-specification then it works
correctly:
~ThrowInDtor() throw(long) {
in dtor
terminate called after throwing an instance of 'long'
Aborted (core dumped)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83400
Jonathan Wakely changed:
What|Removed |Added
Keywords||wrong-code
Status|UNCONFIR