https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101429
--- Comment #2 from cqwrteur <unlvsur at live dot com> --- (In reply to cqwrteur from comment #1) > By the way, i think if _GLIBCXX_VERBOSE==0, it should be just an > __builtin_abort(). This will make optimizers much happier. The bounds > checking will be only once. > > https://godbolt.org/z/7MxMoe3Yn https://godbolt.org/z/b5PT3rs47 I just find using __builtin_trap() can save another register.