https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70147
--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 16 07:02:30 2016 New Revision: 234249 URL: https://gcc.gnu.org/viewcvs?rev=234249&root=gcc&view=rev Log: PR c++/70147 * cp-ubsan.c (cp_ubsan_dfs_initialize_vtbl_ptrs): Conditionalize BINFO_VIRTUAL_P vtable clearing on current_in_charge_parm. * g++.dg/ubsan/pr70147-2.C (C::C): Initialize A base with invalid method call to i () as argument. Adjust expected output. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-ubsan.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/ubsan/pr70147-2.C