https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66095
Bug ID: 66095 Summary: Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mirzayanovmr at gmail dot com Target Milestone: --- Created attachment 35515 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35515&action=edit Code to reproduce a bug The following code unexpectedly fails with error: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. terminate called after throwing an instance of '__gnu_cxx::__concurrence_lock_error' what(): __gnu_cxx::__concurrence_lock_error Used g++ version is 4.9.2 mingw-tdm: A:\queue>g++ --version g++.EXE (tdm-1) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The code is attached. You can compile it with g++ -O2 -static -o grnd grnd.cpp