[Bug c++/94009] New: program (which use condition_variable) segment fault when compile with -static
fengshenjun at yeah dot net
gcc-bugzilla@gcc.gnu.org
Tue Mar 3 02:59:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94009
Bug ID: 94009
Summary: program (which use condition_variable) segment fault
when compile with -static
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: fengshenjun at yeah dot net
Target Milestone: ---
a.out segment fault when I use condition_variable.
1、gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1). gcc 9.2.0 also
2、g++ test.cpp -std=c++17 -static -g
3、./a.out
// test.cpp
#include <iostream>
#include <condition_variable>
using namespace std;
int main() {
condition_variable* cv = new condition_variable();
delete cv;
return 0;
}
More information about the Gcc-bugs
mailing list