https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103745
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I don't think so. What -Wexceptions warns about is almost always a bug (why
would you write a shadowed catch handler that can never catch anything?).

But the choice of whether to only throw things derived from std::exception or
not is purely stylistic, it's not about correctness. Users who want to know
about buggy catch handlers might not want warnings about a style issue they
don't agree with.

Reply via email to