cor3ntin wrote:
@ronlieb can you try again with trunk ? it should be fixed by
https://github.com/llvm/llvm-project/commit/92d83134b44161cad50198e663b543b46d25b45a
It was reproducible with
```cpp
#include <string>
#include <ranges>
#include <array>
#include <algorithm>
std::array<char, 10> current_thread_name{};
auto test(const std::string& task_name) -> void
{
// Initialize the task management
std::ranges::fill(current_thread_name, '\0');
std::ranges::copy(task_name | std::views::take(10 - 1),
current_thread_name.begin());
}````
https://github.com/llvm/llvm-project/pull/161671
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits