gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 13 Jun 2012 16:10:10 +0000 (16:10 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 13 Jun 2012 16:10:10 +0000 (16:10 +0000)
commit50af5481d5feece564c8b03bfb4a647dc7573f3c
tree6d434da197be7f970b21ecc8f8f4afc417571b76
parentd55637df6923689396e58c3d789e82314f4826ec
gdb/
PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
* c-exp.y (classify_inner_name): Remove caller assumptions in the
function comment.  Return ERROR for unresolved cases.  Implement
returning proper NAME.
(yylex): Accept also NAME from classify_inner_name.
* cp-namespace.c (cp_lookup_nested_type): Rename to ...
(cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
LOC_TYPEDEF type.
* cp-support.h (cp_lookup_nested_type): Update its declaration.

gdb/testsuite/
PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
* gdb.cp/cpexprs.cc (class CV, CV::i, ATTRIBUTE_USED, CV_f): New.
(test_function): Call CV_f.
* gdb.cp/cpexprs.exp (p 'CV::m(int)', p CV::m(int))
(p 'CV::m(int) const', p CV::m(int) const, p 'CV::m(int) volatile')
(p CV::m(int) volatile, p 'CV::m(int) const volatile')
(p CV::m(int) const volatile, p CV_f(int), p CV_f(CV::t))
(p CV_f(CV::i)): New tests.
gdb/ChangeLog
gdb/c-exp.y
gdb/cp-namespace.c
gdb/cp-support.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/cpexprs.cc
gdb/testsuite/gdb.cp/cpexprs.exp