PR c++/80129
commitaa251adbd3894684ae0a311f043c267596b1fb67
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Mar 2017 18:45:48 +0000 (22 18:45 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Mar 2017 18:45:48 +0000 (22 18:45 +0000)
tree1e4f17b8856d8dc6d804ba411cf9c40568e61ca9
parent32ab11682de109419e49ad664e3a57d2de6cfa4a
PR c++/80129
* gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
TREE_READONLY on result if writing it more than once.

* g++.dg/torture/pr80129.C: New test.

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