https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70342
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Compiles fast with -fsanitize=undefined -fno-sanitize=null,alignment so the issue is probably related to these two instrumentations.