PR c++/78949
commit0b16b8115f04d3eb51a3e53bc2fb293e7e1c343e
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2017 21:34:27 +0000 (4 21:34 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2017 21:34:27 +0000 (4 21:34 +0000)
treed7e9269f7cc523d6be409caa2e132088684cd804
parenteccc8e877b6ba05ab7181c4a1532517847c39012
PR c++/78949
* typeck.c (cp_build_unary_op): Call mark_rvalue_use on arg if it has
vector type.

* c-c++-common/Wunused-var-16.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244075 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wunused-var-16.c [new file with mode: 0644]