https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78949
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 07:53:35 2017 New Revision: 248637 URL: https://gcc.gnu.org/viewcvs?rev=248637&root=gcc&view=rev Log: Backported from mainline 2017-01-04 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-5-branch/gcc/testsuite/c-c++-common/Wunused-var-16.c Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/typeck.c branches/gcc-5-branch/gcc/testsuite/ChangeLog