https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65131
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- And you can't actually allocate 2^64 bytes of memory on x86_64 either. In practice this doesn't really matter, noone uses max_size() this way.