http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48750
--- Comment #13 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-27 01:05:36 UTC --- Created attachment 24108 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24108 Draft patch This is my work ìn progress patch. I'm for example seeing very good to perfect improvements in terms of valgrind reports for sort / stable_sort / random_shuffle too, which, before the patch, when the ValueType has a non trivial destructor leak a lot. I'm going to the run the patch through the testsuite in parallel-mode and get it closer to the final shape.