https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118822
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Reduced testcase: struct A { A (); ~A (); }; void *bar (); void foo () { while (void *x = bar ()) { if (1) { lab: return; } A a; } }
jakub at gcc dot gnu.org via Gcc-bugs Mon, 10 Feb 2025 14:39:21 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118822
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Reduced testcase: struct A { A (); ~A (); }; void *bar (); void foo () { while (void *x = bar ()) { if (1) { lab: return; } A a; } }