re PR c++/78949 (incorrect "unused variable" warning with SSE2)
authorJakub Jelinek <jakub@redhat.com>
Wed, 4 Jan 2017 21:34:27 +0000 (22:34 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 4 Jan 2017 21:34:27 +0000 (22:34 +0100)
commitabec4284a64b3ebc6f986b5223a3623e682ae348
treed7e9269f7cc523d6be409caa2e132088684cd804
parent26c43e27441b88b20a463686ffe0b9b5ebbfbcf0
re PR c++/78949 (incorrect "unused variable" warning with SSE2)

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.

From-SVN: r244075
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wunused-var-16.c [new file with mode: 0644]