[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug c++/81632] spurious -Wterminate warning about throw in destructor
From:       "daniel.kruegler at googlemail dot com" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2017-07-31 18:15:24
Message-ID: bug-81632-4-EgzQWTH8bH () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

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.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic