https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92731
--- Comment #2 from Lasse Reinhold <rrrlasse at hotmail dot com> --- As far as I remember I could only add a single file when I created the bug report, and the option to add more showed up after completion. Anyway, the c++ code isn't very idiomatic, but I can't see why it would be illegal to let the child thread do a dummy-move (through the lambda reference capture), compared to doing a move in the main thread. An everything is fully synchronized through mutexes...