[Bug libstdc++/58562] std::sort fails with -D_GLIBCXX_DEBUG enabled, whose bug?

2013-09-29 Thread jpritikin at pobox dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58562 --- Comment #7 from Joshua N Pritikin --- Ah, I see. Thanks for pointing out my stupidity. :-)

[Bug libstdc++/58562] std::sort fails with -D_GLIBCXX_DEBUG enabled, whose bug?

2013-09-28 Thread jpritikin at pobox dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58562 --- Comment #4 from Joshua N Pritikin --- (In reply to Jonathan Wakely from comment #2) > That usually means "your code is buggy" > > That's the point of debug mode, it will abort instead of silently ignoring > your buggy code. Rockstar programm

[Bug libstdc++/58562] std::sort fails with -D_GLIBCXX_DEBUG enabled, whose bug?

2013-09-28 Thread jpritikin at pobox dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58562 --- Comment #3 from Joshua N Pritikin --- Created attachment 30925 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30925&action=edit C++ source code to reproduce problem With -D_GLIBCXX_DEBUG, fails with: /usr/include/c++/4.7/bits/stl_heap.h

[Bug libstdc++/58562] New: std::sort fails with -D_GLIBCXX_DEBUG enabled, whose bug?

2013-09-28 Thread jpritikin at pobox dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: jpritikin at pobox dot com Host: x86_64-linux-gnu Target: x86_64-linux-gnu Build: x86_64-linux-gnu Objects involved in the operation: iterator "__