[Bug sanitizer/89869] -fsanitize=undefined miscompilation

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 29 20:10:00 GMT 2019


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 29 20:10:19 2019
New Revision: 270024

URL: https://gcc.gnu.org/viewcvs?rev=270024&root=gcc&view=rev
Log:
        PR sanitizer/89869
        * typeck.c: Include gimplify.h.
        (cp_build_modify_expr) <case COND_EXPR>: Unshare rhs before using it
        for second time.  Formatting fixes.

        * g++.dg/ubsan/vptr-14.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/vptr-14.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list