From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22061 invoked by alias); 26 Nov 2013 14:24:34 -0000 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 Received: (qmail 22036 invoked by uid 48); 26 Nov 2013 14:24:31 -0000 From: "polacek at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/16253] New: Cannot print an enum var with the same name as tag Date: Tue, 26 Nov 2013 14:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: polacek at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q4/txt/msg00436.txt.bz2 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.