https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110764

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Maxim Egorushkin from comment #3)
> 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();
> }

Can you provide the preprocessed source? Since I can't seem to reproduce it
with the above.

Reply via email to