public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/47043] New: allow deprecating enum values
@ 2010-12-22 18:31 drepper.fsp at gmail dot com
  2010-12-22 18:34 ` [Bug c/47043] " steven at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: drepper.fsp at gmail dot com @ 2010-12-22 18:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47043

           Summary: allow deprecating enum values
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: drepper.fsp@gmail.com


The deprecated is nice and it's use should be expanded.  Sometimes enum values
have to be deprecated and it would be useful if one could write this:

enum { newval, oldval __attribute__ ((deprecated)) };

Any use of 'oldval' should provoke the usual warning.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-22  9:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-22 18:31 [Bug c/47043] New: allow deprecating enum values drepper.fsp at gmail dot com
2010-12-22 18:34 ` [Bug c/47043] " steven at gcc dot gnu.org
2013-01-05 23:31 ` bangerth at gmail dot com
2013-01-05 23:32 ` bangerth at gmail dot com
2015-04-30  8:19 ` mpolacek at gcc dot gnu.org
2015-05-22  9:08 ` mpolacek at gcc dot gnu.org
2015-05-22  9:11 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).