https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99965
--- Comment #4 from Juan Lucas Rey <juanlucasrey at gmail dot com> --- I get the error "cannot find -lubsan" with -fsanitize=alignment g++ bug.cpp -o bug -O2 -ftree-loop-vectorize -fvect-cost-model && ./bug this also reproduces the segfault