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

--- Comment #2 from Rafael Avila de Espindola <rafael at espindo dot la> ---
(In reply to Martin Sebor from comment #1)
> Confirmed with the output below.  -Wterminate is fully implemented in the
> C++ front-end so it doesn't know about what might happen in called
> functions.  Implementing the detection across inlined functions requires
> moving the warning to the middle-end and deciding how to deal with
> situations where the called function throws only under some non-constant
> conditions (e.g., issue -Wterminate regardless, or a -Wmaybe-terminate kind
> of a warning, or none).


I would be happy even with a "noexcept function calls a non-noexcept one"
warning.

Reply via email to