This works: (gdb) p 'foo::(anonymous namespace)::bar' This doesn't, but IWBN if it did: (gdb) p foo::(anonymous namespace)::bar Testcase: namespace foo { namespace { int bar; } } int main () { return 0; }
It seems to me that having to enter "(anonymous namespace)" at all is a bug. At least as far as expression parsing goes -- I'm less sure about linespecs.
(In reply to Tom Tromey from comment #1) > It seems to me that having to enter "(anonymous namespace)" > at all is a bug. At least as far as expression parsing goes -- > I'm less sure about linespecs. It seems to me now that this should also be droppable for linespecs.