[Bug c++/62017] AddressSanitizer reports *-buffer-overflow in destructor when multiple virtual inheritance is used

chefmax at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 18 08:46:00 GMT 2014


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.



More information about the Gcc-bugs mailing list