https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123103
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You definitely reduced this testcase too much because you introduced possible undefined behavior due to the return value being possible not being have a value.
