[Bug c++/103745] Warn on throwing an exception not derived from std::exception

2021-12-18 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103745 --- Comment #3 from Jonathan Wakely --- 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

[Bug c++/103745] Warn on throwing an exception not derived from std::exception

2021-12-18 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103745 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[Bug c++/103745] Warn on throwing an exception not derived from std::exception

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103745 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #1 from Andrew