Is this a duplicate?
Type of Bug
Compile-time Error
Component
Thrust
Describe the bug
#include <memory>
#include <execution>
#include <vector>
int32_t
main()
{
std::vector<int> v(10);
auto first = v.begin();
auto itr = ::cuda::counting_iterator<std::vector<int>::iterator>(first);
return 0;
}
This test has started failing with the following error after this commit: 949f42d
error: incomplete type "cuda::__4::counting_iterator<std::vector<int, std::allocator<int>>::iterator, 0, 0>" (aka "cuda::__4::counting_iterator<__gnu_cxx::__normal_iterator<int *, std::vector<int, std::allocator<int>>>, 0, 0>") is not allowed
auto itr = ::cuda::counting_iterator<std::vector<int>::iterator>(first);
^
How to Reproduce
nvc++ -stdpar --c++17 test.cpp
Expected behavior
For the test to compile fine after the fix.
Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response