http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49559
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jwakely.gcc at gmail dot | |com --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-28 09:45:22 UTC --- Irrespective of what happens in other functions, I think we want to check at the beginning of stable_sort whether __last - __first > 1 and thus avoid the _Temporary_buffer dance otherwise. Then, Jon, I'm not sure to understand what you propose to do, note that __last and __result have different types. Also note that the FDIS is *very* explicit about what move_backward does (+ I see now that we have a typo in the documentation comment: "Result may not be in the range (first,last]" *not* "Result may not be in the range [first,last)"