https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101037
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2023-01-16
Ever confirmed|0 |1
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to niXman from comment #5)
> > can't the example be checked using thread sanitizer?
>
> ... on Linux.
The implementation is completely different on linux, so that would require some
code changes at least.
There was already a change to the code waiting on _M_ver in
r12-7151-g4cf3c339815cdf and then a fix for the synchronization in
r13-1957-gaf98cb88eb4be6 (which should be backported to the gcc-12 branch).
Does the problem even still exist on Windows?