https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107310
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |12.1.0 Status|UNCONFIRMED |NEW Last reconfirmed| |2022-10-19 Known to work| |11.3.0 Target Milestone|--- |12.3 Keywords| |diagnostic Ever confirmed|0 |1 Summary|"warning: control reaches |[12/13 Regression] |end of non-void function" |"warning: control reaches |with a throw under a |end of non-void function" |trivially-true conditional |with a throw under a | |trivially-true conditional --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. reduced testcase: struct f { ~f(); }; int foo(int t) { f g; switch (t) { case 1: return 1; } if (true) throw 1; }