public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cmoller at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/10513] New: enums of a given name seem to mask decls of the same name.
Date: Wed, 12 Aug 2009 15:55:00 -0000	[thread overview]
Message-ID: <20090812155530.10513.cmoller@redhat.com> (raw)

Given a program that includes both something like an "int vv;" and an "enum vv
{...}:" trying to print the value of vv results in:

(gdb) p vv
Attempt to use a type name as an expression
(gdb) ptype vv
type = enum vv {v0, v1}
(gdb) 

The enum vv seems to be masking the int vv.

-- 
           Summary: enums of a given name seem to mask decls of the same
                    name.
           Product: gdb
           Version: archer
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: cmoller at redhat dot com
        ReportedBy: cmoller at redhat dot com
                CC: gdb-prs at sourceware dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10513

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


             reply	other threads:[~2009-08-12 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-12 15:55 cmoller at redhat dot com [this message]
2009-08-12 15:59 ` [Bug gdb/10513] " cmoller at redhat dot com
2010-01-22 20:22 ` tromey at redhat dot com
2010-03-13  0:47 ` tromey at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090812155530.10513.cmoller@redhat.com \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).