This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/33489] parallel v3: sort assumes that the type of the objects to be sorted have a default constructor
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2007 17:27:10 -0000
- Subject: [Bug libstdc++/33489] parallel v3: sort assumes that the type of the objects to be sorted have a default constructor
- References: <bug-33489-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from bkoz at gcc dot gnu dot org 2007-09-26 17:27 -------
OK. Now there are tests for all of algorithms for defaultconstructable. As per
20.1, this is not required for template arguments unless the standard
explicitly notes it.
http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01921.html
>From this, we can see that the following parallel algorithms have issues with
this:
merge
nth_element
partial_sort
random_shuffle
set_difference
set_intersection
set_symmetric_difference
set_union
sort
stable_sort
partial_sum
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33489