[Bug c++/92731] Data race on exception object thrown from std::future

rrrlasse at hotmail dot com gcc-bugzilla@gcc.gnu.org
Fri Nov 29 18:35:00 GMT 2019


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...


More information about the Gcc-bugs mailing list