PR c++/70035
commite968ff6d2edad40dcc7508d413d05b71a010e2ce
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Mar 2016 22:10:49 +0000 (4 22:10 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Mar 2016 22:10:49 +0000 (4 22:10 +0000)
tree8a513c754cfa209a3137cc23ee5567d3dfd1c8f6
parentf894a056060b74a835b13e272b6e6a76370f3546
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233984 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/cp-ubsan.c
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr70035.C [new file with mode: 0644]