This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17686] New: wrong overloaded symbol found for print of symbol found via using of anonymous namespace


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]