Issue |
139051
|
Summary |
Extremely Slow Compilation and Timeout with std::ranges::copy and std::views::iota
|
Labels |
new issue
|
Assignees |
|
Reporter |
mariete1223
|
Compiling a C++ program using std::ranges::copy in combination with std::views::iota causes extremely long compilation times (several minutes), sometimes resulting in a forced termination due to exceeded time limits (SIGKILL).
In local it do not end compiling, without giving any feedback.
## Output
```
Killed - processing time exceeded
Program terminated with signal: SIGKILL
Compiler returned: 143
```
## Program
```
#include <algorithm>
#include <iterator>
#include <iostream>
#include <numeric>
int main (int argc, char* argv[])
{
std::copy (std::make_integer_iterator (1), std::make_integer_iterator (100), std::ostream_iterator<int> (std::cout));
std::ranges::copy (std::views::iota (1, 100), std::ostream_iterator<int> (std::cout));
return 0;
}
```
## To quickly reproduce
https://gcc.godbolt.org/z/4q81GE1Pn
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs