re PR sanitizer/89869 (-fsanitize=undefined miscompilation)
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Mar 2019 20:10:19 +0000 (21:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 29 Mar 2019 20:10:19 +0000 (21:10 +0100)
commit2b53407efbd38b7d77d17890d5f805436856fbff
tree26387593f73f7865555c4a86ed1f9162c19e09a0
parent77527d8ac499e55ff609ce112e0c68ebd8836704
re PR sanitizer/89869 (-fsanitize=undefined miscompilation)

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.

From-SVN: r270024
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/vptr-14.C [new file with mode: 0644]