[Bug c++/83400] g++ -O1 doesn't execute any code in destructors with a throw statement if it sees another throw

2023-05-22 Thread jason at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/83400] g++ -O1 doesn't execute any code in destructors with a throw statement if it sees another throw

2018-05-15 Thread redbeard0531 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83400 --- Comment #3 from Mathias Stearn --- This is related to https://wg21.link/CWG2219

[Bug c++/83400] g++ -O1 doesn't execute any code in destructors with a throw statement if it sees another throw

2017-12-13 Thread redi at gcc dot gnu.org
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)

[Bug c++/83400] g++ -O1 doesn't execute any code in destructors with a throw statement if it sees another throw

2017-12-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83400 Jonathan Wakely changed: What|Removed |Added Keywords||wrong-code Status|UNCONFIR