This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70035] [5/6 Regression] Calling a non-virtual member in base-class constructor call with ubsan causes segfault when superclass has virtual member with same name


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]