https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77982
--- Comment #2 from Kostya Serebryany <kcc at gcc dot gnu.org> --- Is -flto important here? Does this happen with clang? (does not happen for me) Does this happen if you use statically linked asan (-static-libasan)?