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