diff options
author | swagiaal <swagiaal> | 2010-09-13 20:41:04 +0000 |
---|---|---|
committer | swagiaal <swagiaal> | 2010-09-13 20:41:04 +0000 |
commit | 8621e6dd5d4e09a1135bed0422589940ff698e98 (patch) | |
tree | 95fa33d588b0dfd134917aa095cb9f7ba72d0d8f /gdb/c-exp.y | |
parent | 2a02d41a75e820ac0b188ce1cac5d6d3b839a829 (diff) | |
download | gdb-8621e6dd5d4e09a1135bed0422589940ff698e98.tar.gz |
Fix PR 11992: C++ 'this' scope sometimes does not work
2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
PR symtab/11992:
* c-exp.y (classify_name): Check is_a_member_of_this before returning
UNKNOWN_CPP_NAME.
2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/koenig.cc: created class for testing member lookup.
* gdb.cp/koenig.exp: Added test for member lookup.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 663e778bd41..57e09b33b23 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -2389,6 +2389,7 @@ classify_name (struct block *block) if (sym == NULL && parse_language->la_language == language_cplus + && !is_a_field_of_this && !lookup_minimal_symbol (copy, NULL, NULL)) return UNKNOWN_CPP_NAME; |