public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/16253] New: Cannot print an enum var with the same name as tag
@ 2013-11-26 14:24 polacek at redhat dot com
  2013-11-26 14:27 ` [Bug gdb/16253] " polacek at redhat dot com
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: polacek at redhat dot com @ 2013-11-26 14:24 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16253

            Bug ID: 16253
           Summary: Cannot print an enum var with the same name as tag
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: polacek at redhat dot com

On:
enum e { A, B } e;
int main (void) { }

I can't print the value of 'e':
$ g++ -g z.C; gdb -q -batch -ex 'sta' -ex 'p e' ./a.out

I have GNU gdb (GDB) 7.6.50.20131125-cvs and gcc version 4.9.0 20131126
(experimental) (GCC).

Note that with cc1 rather than cc1plus this works fine:
2    int main (void) { }
$1 = A

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2015-06-26 18:43 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-26 14:24 [Bug gdb/16253] New: Cannot print an enum var with the same name as tag polacek at redhat dot com
2013-11-26 14:27 ` [Bug gdb/16253] " polacek at redhat dot com
2013-11-27 18:52 ` keiths at redhat dot com
2013-11-27 23:48 ` polacek at redhat dot com
2014-03-21 18:14 ` [Bug c++/16253] " keiths at redhat dot com
2014-04-14 22:56 ` cvs-commit at gcc dot gnu.org
2014-04-14 22:57 ` keiths at redhat dot com
2014-05-28  1:51 ` dje at google dot com
2014-05-28  1:54 ` dje at google dot com
2014-05-28 17:25 ` dje at google dot com
2014-06-04  3:32 ` xdje42 at gmail dot com
2014-08-29 13:37 ` lgustavo at codesourcery dot com
2015-06-03 15:36 ` fche at redhat dot com
2015-06-03 16:06 ` jason at redhat dot com
2015-06-03 16:09 ` jason at redhat dot com
2015-06-03 16:10 ` jason at redhat dot com
2015-06-03 16:15 ` dje at google dot com
2015-06-03 16:19 ` mgretton at sourceware dot org
2015-06-03 17:32 ` dje at google dot com
2015-06-04 16:01 ` fweimer at redhat dot com
2015-06-04 17:29 ` dje at google dot com
2015-06-12 15:53 ` keiths at redhat dot com
2015-06-26 18:43 ` cvs-commit 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).