PR c++/82159
commit97fabbc141bc3fd97a10205a062620f5cccab0c9
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Oct 2017 07:23:24 +0000 (12 07:23 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Oct 2017 07:23:24 +0000 (12 07:23 +0000)
treeb7e456f1cc40bd8b1c31a95b0bc707d690c99e52
parent2c1d552ca0789b74c661032903e74e23c4bc59bf
PR c++/82159
* expr.c (store_field): Don't optimize away bitsize == 0 store
from CALL_EXPR with addressable return type.

* g++.dg/opt/pr82159-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253673 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr82159-2.C [new file with mode: 0644]