Displaying 1 result from an estimated 1 matches for "barakus".
Did you mean:
baracus
2015 Feb 13
2
[LLVMdev] SIGILL in regex::assign()
...std::regex re;
re.assign(std::regex("foo")); // SIGILL
return 0;
}
It runs smoothly if compiled with g++ but raises "illegal instruction"
when compiled with clang++:
g++ -std=c++11 -O0 -g -o test-g++ test.cpp
clang++ -std=c++11 -O0 -g -o test-clang++ test.cpp
ptomulik at barakus:$ ./test-g++
ptomulik at barakus:$ ./test-clang++
Illegal instruction
Note that the following assignment still works:
re.assign(static_cast<std::regex const&>(std::regex("foo")));
I'm working on Debian 8.0, my clang version is:
ptomulik at barakus:$ clang++ --version
De...