pgCC is unable to compile the code shown below. This code attempts to fill a vector using the assign member function where the arguments to the function are iterators for a set. Both pgCC version 5.2-4 and 6.0-2 produce this error. Neither g++ (Linux) or cxx (Tru64) exhibit this problem.

```
// file: sample.cc
#include <set>
#include <vector>
int main()
{
using namespace std;
std::set<unsigned> su;
std::vector<unsigned> vu;
su.insert(1);
su.insert(100);
su.insert(99);
vu.assign( su.begin(), su.end() );
return 0;
}
```

Executing

pgCC –g sample.cc

produces the error

```
"/usr/local/pgi/linux86/6.0/include/CC/stl/_algobase.h", line 200: error: no
suitable conversion function from
"std::_Rb_tree_iterator<std::_Rb_tree<std::set<unsigned int,
std::less<unsigned int>, std::allocator<unsigned int>>::key_type,
std::set<unsigned int, std::less<unsigned int>,
std::allocator<unsigned int>>::value_type,
std::_Identity<std::set<unsigned int, std::less<unsigned int>,
std::allocator<unsigned int>>::value_type>, std::set<unsigned int,
std::less<unsigned int>, std::allocator<unsigned int>>::key_compare,
std::allocator<unsigned int>>::value_type,
std::_Const_traits<std::_Rb_tree<std::set<unsigned int,
std::less<unsigned int>, std::allocator<unsigned int>>::key_type,
std::set<unsigned int, std::less<unsigned int>,
std::allocator<unsigned int>>::value_type,
std::_Identity<std::set<unsigned int, std::less<unsigned int>,
std::allocator<unsigned int>>::value_type>, std::set<unsigned int,
std::less<unsigned int>, std::allocator<unsigned int>>::key_compare,
std::allocator<unsigned int>>::value_type>>" to "const void *" exists
return (_OutputIter)__copy_trivial(__first, __last, __result);
```

Any suggestions?