PR c++/79548 - missing -Wunused-variable on a typedef'd variable in a function template
authorMartin Sebor <msebor@redhat.com>
Tue, 21 Mar 2017 22:33:39 +0000 (22:33 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 21 Mar 2017 22:33:39 +0000 (16:33 -0600)
commit3f01b620a7a84f67233185d8f8b1f46f2ae680bd
treeb6e3dbc7ba092a9077d668b134400cb6a5ce690d
parentfd250f0d4e02e7578fbaba2a77a46be3ca0dc47f
PR c++/79548 - missing -Wunused-variable on a typedef'd variable in a function template

gcc/c-family/ChangeLog:

PR c++/79548
* c-common.c (set_underlying_type): Mark type used only when
original del is declared unused.

gcc/testsuite/ChangeLog:

PR c++/79548
* g++.dg/warn/Wunused-var-26.C: New test.

From-SVN: r246335
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-var-26.C [new file with mode: 0644]