https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38658

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-06-22
     Ever confirmed|0                           |1

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #3)
> There are situations when throwing an exception is required to result in a
> call to std::terminate() but those require the exception to escape the
> function where it's thrown from.  Outside of those, it  seems to me that as
> long as the observable effect of the optimized code is indistinguishable
> from the original (such as in the test case) removing try/catch statements
> should be a valid optimization.

Agreed.

Reply via email to