Issue 115727
Summary [libcxx]: `__uninitialized_allocator_copy` misses `std::move` before calling `__unwrap_range`
Labels libc++
Assignees
Reporter hewillk
    https://github.com/llvm/llvm-project/blob/4c4db3c943d686ff7c1fcf2dbc975e8462497efe/libcxx/include/__memory/uninitialized_algorithms.h#L585-L592

testcase:
```cpp
#include <sstream>
#include <vector>
#include <ranges>
 
int main() {
 auto is = std::istringstream{"1 2 3 4"};
  auto ints = std::views::istream<int>(is);
  std::vector v(std::from_range, std::views::counted(ints.begin(), 3));
}
```
https://godbolt.org/z/rjWeqdPj1
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to