Consider the following simple C ++ program
#include <iostream> #include <regex> int main(int argc, char * argv[]) { std::regex foobar( "[A]+"); return 0; }
When compiling with -fpack-struct = 1, these are seg faults
g++-5 -std=gnu++14 ./fpack_regex.cpp -fpack-struct=1 -o a.out && a.out Segmentation fault (core dumped)
Until
g++-5 -std=gnu++14 ./fpack_regex.cpp -o a.out && a.out
works great.
Any hint why the pack-struct = 1 parameter might cause this failure?
source share