https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120337
--- Comment #1 from MARIO RODRIGUEZ BEJAR <mario.rodriguezb1 at um dot es> ---
I have found with a program that gives a similar ICE, if you use c++23 instead
of c++20 it gives "g++: internal compiler error: Segmentation fault signal
terminated program cc1plus":
```
#include <functional>
#include <iostream>
#include <thread>
using namespace std;
class Test {
public:
void test() {
}
};
int main() {
auto y = std::bind(&Test::test, std::make_unique<Test>());
std::thread t(y);
}
```
https://godbolt.org/z/o9bGeqMG6