diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-03-04 23:10:49 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-03-04 23:10:49 +0100 |
commit | 0c8825de94f416f4e76720f769f26e21c80d328c (patch) | |
tree | 8a513c754cfa209a3137cc23ee5567d3dfd1c8f6 /gcc/c | |
parent | 188e53bd7e191526f2c6804601c031f8f7c53e14 (diff) | |
download | gcc-0c8825de94f416f4e76720f769f26e21c80d328c.zip gcc-0c8825de94f416f4e76720f769f26e21c80d328c.tar.gz gcc-0c8825de94f416f4e76720f769f26e21c80d328c.tar.bz2 |
re PR c++/70035 (Calling a non-virtual member in base-class constructor call with ubsan causes segfault when superclass has virtual member with same name)
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.
From-SVN: r233984
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions