This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/10513] New: enums of a given name seem to mask decls of the same name.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]