https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110764
Maxim Egorushkin <maxim.yegorushkin at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maxim.yegorushkin at gmail dot
com
--- Comment #3 from Maxim Egorushkin <maxim.yegorushkin at gmail dot com> ---
The original correct reproduction:
#include <thread>
#include <vector>
void g(int);
void f() {
std::vector<std::thread> threads(1);
threads[0] = std::thread(g, 42); // Compiler error comes from this
statement.
threads[0].join();
}