This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71541] destructor of condition_variable_any crashes with static linkage
- From: "gcc_bugzilla at haphi dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Jun 2016 16:52:13 +0000
- Subject: [Bug c++/71541] destructor of condition_variable_any crashes with static linkage
- Auto-submitted: auto-generated
- References: <bug-71541-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71541
--- Comment #4 from gcc_bugzilla at haphi dot de ---
(In reply to Jonathan Wakely from comment #3)
> You need to link to libpthread to use std::condition_variable_any.
Adding -lpthread doesn't change the situation.