This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/68409] Garbage added to a map instead of object
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Nov 2015 11:50:01 +0000
- Subject: [Bug c++/68409] Garbage added to a map instead of object
- Auto-submitted: auto-generated
- References: <bug-68409-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68409
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
As Adrian says, your operator< is not valid. See
https://www.sgi.com/tech/stl/StrictWeakOrdering.html for the requirements that
must be met for the comparison function used by std::map