re PR sanitizer/79589 (ICE in gimplify_compound_expr (gimplify.c:5712) with -fsanitiz...
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Feb 2017 17:59:07 +0000 (18:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Feb 2017 17:59:07 +0000 (18:59 +0100)
commit5c3f1d7b10ab48d50e80359eb18c0edc1e3ed402
tree9e7bd5b896cbeb1a0954c568134071e19d005c93
parent1486c2a780bee75dc5afecdc8b03f28906b2ef04
re PR sanitizer/79589 (ICE in gimplify_compound_expr (gimplify.c:5712) with -fsanitize=undefined)

PR sanitizer/79589
* decl.c: Include gimplify.h.
(cp_finish_decomp): Make sure there is no sharing of trees
in between DECL_VALUE_EXPR of decomposition decls.

* g++.dg/ubsan/pr79589.C: New test.

From-SVN: r245638
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr79589.C [new file with mode: 0644]