https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108278
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the original testcase does (inside _M_max_size): return std::size_t(0x7fffffffffffffffL) / sizeof(_Tp); Which was reduced to just: attach___trans_tmp_3 = 9223372036854775807 / 2;