[Bug libstdc++/94244] std::sort corrupts memory
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 20 23:05:31 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94244
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
your compare has an ordering issue.
That is a.tStart <= b.tStart
will cause to return true when a and b point to the same element.
See PR 553.
*** This bug has been marked as a duplicate of bug 553 ***
More information about the Gcc-bugs
mailing list