[Bug c++/79548] [5/6 Regression] missing -Wunused-variable on a typedef'd variable in a function template
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 21 23:39:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79548
--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Mar 21 23:39:12 2017
New Revision: 246336
URL: https://gcc.gnu.org/viewcvs?rev=246336&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/warn/Wunused-var-26.C
Modified:
branches/gcc-6-branch/gcc/c-family/ChangeLog
branches/gcc-6-branch/gcc/c-family/c-common.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list