This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/17686] New: wrong overloaded symbol found for print of symbol found via using of anonymous namespace
- From: "xdje42 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 07 Dec 2014 22:21:36 +0000
- Subject: [Bug c++/17686] New: wrong overloaded symbol found for print of symbol found via using of anonymous namespace
- Auto-submitted: auto-generated
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<char *> (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.