https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70147
--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 16 07:01:36 2016 New Revision: 234248 URL: https://gcc.gnu.org/viewcvs?rev=234248&root=gcc&view=rev Log: PR c++/70147 * cp-ubsan.c (cp_ubsan_maybe_initialize_vtbl_ptrs): Temporarily set in_base_initializer. * g++.dg/ubsan/pr70147-1.C: New test. * g++.dg/ubsan/pr70147-2.C: New test. Added: trunk/gcc/testsuite/g++.dg/ubsan/pr70147-1.C trunk/gcc/testsuite/g++.dg/ubsan/pr70147-2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-ubsan.c trunk/gcc/testsuite/ChangeLog