[Bug libstdc++/66742] abort on sorting list with custom compiler that is not stateless
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 2 20:47:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66742
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Indeed. Splicing lists has a precondition that l1.get_allocator() ==
l2.get_allocator(), and so we check:
if (l1.get_allocator() != l2.get_allocator())
abort();
and obviously that fails for your invalid allocator type.
More information about the Gcc-bugs
mailing list