https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118822
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #4)
> Reduced testcase:
Slightly more reduced:
```
struct s1 { ~s1(); };
bool f();
void g() {
while (bool t = f()) {
not_free:;
s1 mtr;
}
}
```
