https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95221

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:172f2c42a10fd470c93f1e84575de9766c157591

commit r11-775-g172f2c42a10fd470c93f1e84575de9766c157591
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon Jun 1 16:20:38 2020 -0400

    c++: vptr ubsan and object of known type [PR95466]

    Another case where we can't find the OBJ_TYPE_REF_OBJECT in the
    OBJ_TYPE_REF_EXPR.  So let's just evaluate the sanitize call first.

    gcc/cp/ChangeLog:

            PR c++/95466
            PR c++/95311
            PR c++/95221
            * class.c (build_vfn_ref): Revert 95311 change.
            * cp-ubsan.c (cp_ubsan_maybe_instrument_member_call): Build a
            COMPOUND_EXPR.

    gcc/testsuite/ChangeLog:

            PR c++/95466
            * g++.dg/ubsan/vptr-17.C: New test.

Reply via email to