re PR libstdc++/48750 (for_each_template_random_access_ed has unbalanced new/delete[])
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 3 May 2011 14:20:45 +0000 (14:20 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 3 May 2011 14:20:45 +0000 (14:20 +0000)
commit0ecca7a6a6185daa25fa3253962155ae42c086b2
tree9b5af4e1a87ca2598155d388ac3c6a72a49f3888
parent7071d0648c0db166f8e242c39e76ed69a9b36b62
re PR libstdc++/48750 (for_each_template_random_access_ed has unbalanced new/delete[])

2011-05-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/48750
* include/parallel/multiway_merge.h: Run _ValueType destructors.
* include/parallel/multiway_mergesort.h: Likewise.
* include/parallel/quicksort.h: Likewise.
* include/parallel/random_shuffle.h: Likewise.
* include/parallel/partial_sum.h: Likewise.
* include/parallel/losertree.h: Run destructors; minor tweaks.
* include/parallel/par_loop.h: Run destructors, fix memory
allocations and deallocations.
* testsuite/26_numerics/accumulate/48750.cc: New.

* testsuite/ext/profile/mutex_extensions_neg.cc: Do not run in
parallel-mode to avoid spurious multiple errors.

From-SVN: r173309
libstdc++-v3/ChangeLog
libstdc++-v3/include/parallel/losertree.h
libstdc++-v3/include/parallel/multiway_merge.h
libstdc++-v3/include/parallel/multiway_mergesort.h
libstdc++-v3/include/parallel/par_loop.h
libstdc++-v3/include/parallel/partial_sum.h
libstdc++-v3/include/parallel/quicksort.h
libstdc++-v3/include/parallel/random_shuffle.h
libstdc++-v3/testsuite/26_numerics/accumulate/48750.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc