This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/48750] for_each_template_random_access_ed has unbalanced new/delete[]
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Apr 2011 01:08:59 +0000
- Subject: [Bug libstdc++/48750] for_each_template_random_access_ed has unbalanced new/delete[]
- Auto-submitted: auto-generated
- References: <bug-48750-4@http.gcc.gnu.org/bugzilla/>
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.