https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62017
--- Comment #3 from Maxim Ostapenko <chefmax at gcc dot gnu.org> --- Test fails only if compile on -O0 and -Os optimization levels: $ ~/install/master/bin/g++ diamond_virt.cc -fsanitize=address -Os On -O1, -O2 and -O3 ASan does not report any error.