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

--- Comment #2 from frankhb1989 at gmail dot com ---
(In reply to Jonathan Wakely from comment #1)
> Maybe we want to placement-new the mutexes into a buffer so they are never
> destroyed, although on mingw that will show up as leaked resources at
> program shutdown (and this is only really a problem on mingw as we don't
> need to run any destructor on the mutexes for most targets).

This could be an acceptable workaround for MinGW, but I am not sure if there
would be some unexpected side effects. For other targets in future, this can
still be a problem.

Reply via email to