This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79548] [5/6/7 Regression] missing -Wunused-variable on a typedef'd variable in a function template


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79548

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Mar 21 22:33:39 2017
New Revision: 246335

URL: https://gcc.gnu.org/viewcvs?rev=246335&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:
    trunk/gcc/testsuite/g++.dg/warn/Wunused-var-26.C
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]