https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116772
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The easiest fix is to add: && !generic_expr_could_trap_p (@3) There but I am not sure if that will always work even though generic_expr_could_trap_p is recusive.