re PR c++/82159 (ICE: in assign_temp, at function.c:961)
authorJakub Jelinek <jakub@redhat.com>
Wed, 27 Sep 2017 14:19:57 +0000 (16:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 27 Sep 2017 14:19:57 +0000 (16:19 +0200)
commitb55c7343f02718bca7a8d2eba9dc9e6e3905d9e8
treef1786b6bc23f822bbf3b6abba22114c8876894cf
parent99124c31f9afaa8e713f3e1335d8e53c2ee61bc1
re PR c++/82159 (ICE: in assign_temp, at function.c:961)

PR c++/82159
* gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
lhs from calls if the lhs has addressable type.

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

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