------- Comment #1 from j dot s dot sebastian at gmail dot com 2009-01-19 13:50 ------- After some trial and error, I found it does compile (on same system) if I modify the code as follows, to use the 3-argument version of sort:
#include <vector> #include <parallel/algorithm> int main() { std::vector<int> v(100); // Explicitly force a call to parallel sort. //__gnu_parallel::sort(v.begin(), v.end()); __gnu_parallel::sort(v.begin(), v.end(),std::less<int>()); return 0; } Still I think it is a bug (not just documentation bug), as both versions should work. By the way this parallel STL stuff is just awesome ;-) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38897