https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64318
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |redi at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Are the std::mt19937 and std::normal_distribution<> classes meant to be thread-safe? I mean, in your testcase you access (supposedly read and write) the same objects from multiple threads, so unless the standard says it is required to work in a thread-safe, your testcase is racy.