[Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered
redi at gcc dot gnu.org
Mon Oct 8 10:12:00 GMT 2018
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> allocator::max_size() is worse than useless
Fixed that for you.
For PR 78448 I recently changed std::vector<T, A>::max_size() so it won't
return anything greater than PTRDIFF_MAX, even if the allocator stupidly says
it can handle more than that. But the standard explicitly requires the
allocator to be stupid, so I'm not sure what more libstdc++ can do here.
More information about the Gcc-bugs