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++/13384] New: toplevel namespace aliases don't work


http://sourceware.org/bugzilla/show_bug.cgi?id=13384

             Bug #: 13384
           Summary: toplevel namespace aliases don't work
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tromey@redhat.com
    Classification: Unclassified


Consider this test:

namespace A {
  namespace B {
    namespace C {
      int x = 5;

      int nsfunc () {
    return x;
      }
    }
  }
}

namespace Q = A::B;

int xfun() {
  return Q::C::x;        // Breakpoint xfun
}

using namespace Q::C;

int yfun() {
  return x;            // Breakpoint yfun
}

int main(){
  return xfun() + yfun();
}

If you break in "main", then "break Q::C::nsfunc" should work.
However, it does not.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]