[Bug c++/90105] New: std::forward_list::sort() is not "stable"

2019-04-15 Thread stoyanovmk at ornl dot gov
mponent: c++ Assignee: unassigned at gcc dot gnu.org Reporter: stoyanovmk at ornl dot gov Target Milestone: --- Created attachment 46175 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46175&action=edit Small example to reproduce the issue From: https://en.cppre

[Bug libstdc++/90105] std::forward_list::sort() is not "stable"

2019-04-16 Thread stoyanovmk at ornl dot gov
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90105 --- Comment #2 from stoyanovmk at ornl dot gov --- Tested the fix provided by Jonathan Wakely, I can confirm the fix. Ran several tests with the included small example and the code where I found the issue in the first place.(In reply to Jonathan