[Bug c++/71274] [5/6 Regression] deprecated static const member of struct raises warning without use

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 6 18:52:00 GMT 2016


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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Dec  6 18:51:56 2016
New Revision: 243314

URL: https://gcc.gnu.org/viewcvs?rev=243314&root=gcc&view=rev
Log:
        PR c++/71274 - deprecated warning without use.

        * decl2.c (maybe_instantiate_decl): Split out from mark_used.
        (decl_constant_var_p): Use it instead.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/warn/deprecated-11.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/decl2.c


More information about the Gcc-bugs mailing list