From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17971 invoked by alias); 7 Dec 2014 22:21:37 -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 17947 invoked by uid 48); 7 Dec 2014 22:21:37 -0000 From: "xdje42 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/17686] New: wrong overloaded symbol found for print of symbol found via using of anonymous namespace Date: Sun, 07 Dec 2014 22:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xdje42 at gmail 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: 2014-q4/txt/msg00349.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17686 Bug ID: 17686 Summary: wrong overloaded symbol found for print of symbol found via using of anonymous namespace Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: xdje42 at gmail dot com bash$ make run GDBFLAGS=testsuite/gdb.cp/anon-ns (gdb) start (gdb) step doit () at ../../../anon-ns-16874/gdb/testsuite/gdb.cp/anon-ns2.cc:76 76 one a, b (3), c (static_cast (NULL)); (gdb) p doit1(int) $1 = {void (void)} 0x400580 <(anonymous namespace)::doit1()> (gdb) Note that doit1(void) was found instead of doit1(int). >>From anon-ns2.cc: namespace { void doit1 (void) { } // doit1(void) void doit1 (int a) { } // doit1(int) -- You are receiving this mail because: You are on the CC list for the bug.