From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30891 invoked by alias); 12 Aug 2009 15:55:31 -0000 Received: (qmail 30848 invoked by uid 48); 12 Aug 2009 15:55:31 -0000 Date: Wed, 12 Aug 2009 15:55:00 -0000 From: "cmoller at redhat dot com" To: gdb-prs@sourceware.org Message-ID: <20090812155530.10513.cmoller@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug gdb/10513] New: enums of a given name seem to mask decls of the same name. X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00125.txt.bz2 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.