re PR c++/82159 (ICE: in assign_temp, at function.c:961)
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Oct 2017 07:23:24 +0000 (09:23 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 12 Oct 2017 07:23:24 +0000 (09:23 +0200)
commit6089393b7401123b37e4e59a6853c0c196c423c5
treeb7e456f1cc40bd8b1c31a95b0bc707d690c99e52
parent281ff779cc1efadd5004248e7de6ef3cfc8c30df
re PR c++/82159 (ICE: in assign_temp, at function.c:961)

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.

From-SVN: r253673
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr82159-2.C [new file with mode: 0644]