[Bug libstdc++/59603] New: std::random_shuffle tries to swap element with itself

2013-12-26 Thread fab at orlen dot de
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: fab at orlen dot de When using the debugging macro _GLIBCXX_DEBUG, calling random_shuffle fails on some types, because it might try to swap an element with itself. Output of attached program: /tmp$ g++ -o

[Bug libstdc++/59603] std::random_shuffle tries to swap element with itself

2013-12-26 Thread fab at orlen dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59603 --- Comment #1 from Fabian Emmes fab at orlen dot de --- Created attachment 31518 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31518action=edit program triggering the error