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

2017-10-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71274

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|5.5 |6.5

--- Comment #5 from Jakub Jelinek  ---
GCC 5 branch is being closed

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

2016-12-06 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71274

--- Comment #4 from Jason Merrill  ---
Author: jason
Date: Tue Dec  6 18:51:56 2016
New Revision: 243314

URL: https://gcc.gnu.org/viewcvs?rev=243314=gcc=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

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

2016-07-21 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71274

Jason Merrill  changed:

   What|Removed |Added

Summary|[5/6/7 Regression]  |[5/6 Regression] deprecated
   |deprecated static const |static const member of
   |member of struct raises |struct raises warning
   |warning without use |without use

--- Comment #3 from Jason Merrill  ---
Fixed on trunk so far.