https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119599
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note this does not ICE at -O1 is because of PR 82158 which changes return (inside the noreturn function) into __builtin_unreachable when optimizing.