[Bug c++/81632] spurious -Wterminate warning about throw in destructor
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jul 31 18:16:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81632
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
You are wrong. The warning is correct, because the code only catches the first
exception and then rethrows it within the int handler again. The rethrown
exception is not caught, you would need a separate try/catch for this.
More information about the Gcc-bugs
mailing list