[Bug libstdc++/65343] unexpected exception thrown during destruction of static object in debug mode
frankhb1989 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 10 12:25:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list