This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/13384] New: toplevel namespace aliases don't work
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 04 Nov 2011 18:56:52 +0000
- Subject: [Bug c++/13384] New: toplevel namespace aliases don't work
- Auto-submitted: auto-generated
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.