https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64711
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- DEF_LIB_BUILTIN_CHKP (BUILT_IN_MEMMOVE, "memmove", BT_FN_PTR_PTR_CONST_PTR_SIZE, ATTR_RET1_NOTHROW_NONNULL_LEAF) memmove is marked as nothrow. So the question is that correct if so then there is no bug here; just misusing non-call exceptions :).