re PR c++/71442 (r232569 breaks -Wunused-*)
authorJakub Jelinek <jakub@redhat.com>
Wed, 8 Jun 2016 17:57:30 +0000 (19:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 8 Jun 2016 17:57:30 +0000 (19:57 +0200)
commit2ef16b6eb25b29ae3790ab39162d1d6df3ccf284
tree723e41dc1f599672660573e3b11219674b3c3857
parent5e3ee346c19d60d8f62194d85a846927b0a39b57
re PR c++/71442 (r232569 breaks -Wunused-*)

PR c++/71442
* pt.c (tsubst_copy): Only set TREE_USED on DECLs.

* g++.dg/cpp0x/Wunused-variable-1.C: New test.

From-SVN: r237232
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wunused-variable-1.C [new file with mode: 0644]