This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79548] [5/6 Regression] missing -Wunused-variable on a typedef'd variable in a function template
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Mar 2017 23:39:44 +0000
- Subject: [Bug c++/79548] [5/6 Regression] missing -Wunused-variable on a typedef'd variable in a function template
- Auto-submitted: auto-generated
- References: <bug-79548-4@http.gcc.gnu.org/bugzilla/>
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