https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70035
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Mar 4 22:10:49 2016 New Revision: 233984 URL: https://gcc.gnu.org/viewcvs?rev=233984&root=gcc&view=rev Log: PR c++/70035 * cp-tree.h (cp_ubsan_maybe_initialize_vtbl_ptrs): New prototype. * decl.c (start_preparsed_function): Call cp_ubsan_maybe_initialize_vtbl_ptrs if needed. * cp-ubsan.c (cp_ubsan_dfs_initialize_vtbl_ptrs, cp_ubsan_maybe_initialize_vtbl_ptrs): New functions. * g++.dg/ubsan/pr70035.C: New test. Added: trunk/gcc/testsuite/g++.dg/ubsan/pr70035.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/cp-ubsan.c trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog