PR c/79089
commit51361f65c9de6271bce8569a1656c8180bd56762
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Jan 2017 21:35:30 +0000 (16 21:35 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Jan 2017 21:35:30 +0000 (16 21:35 +0000)
treeee97ac356e8734e988a1ffa5b6f8e942425a0f7c
parent244e9d34acb3e91e8c58424ee7592a1c9bbc10cb
PR c/79089
* gimplify.c (gimplify_init_constructor): If want_value and
object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
fix.

* gcc.c-torture/compile/pr79089.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244507 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr79089.c [new file with mode: 0644]