3.8 is pretty old. you should try with a more recent version (https://apt.llvm.org/ can help with that).
Anyway, I cannot reproduce the issue from 3.8 to 7. ** Changed in: llvm-defaults (Ubuntu) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1748344 Title: clang++ regex_replace always segfaults with -O3 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1748344/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs