[Bug c++/71442] [5/6/7 Regression] r232569 breaks -Wunused-*
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 8 18:01:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71442
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jun 8 18:00:30 2016
New Revision: 237233
URL: https://gcc.gnu.org/viewcvs?rev=237233&root=gcc&view=rev
Log:
PR c++/71442
* pt.c (tsubst_copy): Only set TREE_USED on DECLs.
* g++.dg/cpp0x/Wunused-variable-1.C: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/Wunused-variable-1.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/pt.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list