public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17686] New: wrong overloaded symbol found for print of symbol found via using of anonymous namespace
@ 2014-12-07 22:21 xdje42 at gmail dot com
  0 siblings, 0 replies; only message in thread
From: xdje42 at gmail dot com @ 2014-12-07 22:21 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-07 22:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-07 22:21 [Bug c++/17686] New: wrong overloaded symbol found for print of symbol found via using of anonymous namespace xdje42 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).