This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/10513] New: enums of a given name seem to mask decls of the same name.
- From: "cmoller at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 12 Aug 2009 15:55:31 -0000
- Subject: [Bug gdb/10513] New: enums of a given name seem to mask decls of the same name.
- Reply-to: sourceware-bugzilla at sourceware dot org
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.