[Bug c++/79548] 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:57:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79548
--- Comment #9 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Mar 21 23:56:52 2017
New Revision: 246337
URL: https://gcc.gnu.org/viewcvs?rev=246337&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-5-branch/gcc/testsuite/g++.dg/warn/Wunused-var-26.C
Modified:
branches/gcc-5-branch/gcc/c-family/ChangeLog
branches/gcc-5-branch/gcc/c-family/c-common.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list