https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112307
--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The reduced testcase has an uninitialized variable in it:
```
if (!begin_.has_value()) {
bool result;
return result;
}
```
This might be the issue overall.
