aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-09-13 20:41:05 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-09-13 20:41:05 +0000
commit450ca57cacb0f620f94fa16b7ab3ea6e0076383c (patch)
tree890c610158321bc2f8863f354c2b8172721954df /gdb/c-exp.y
parent1aee7009881311b5aa08640a8f0a0f23f32fae6c (diff)
downloadgdb-450ca57cacb0f620f94fa16b7ab3ea6e0076383c.zip
gdb-450ca57cacb0f620f94fa16b7ab3ea6e0076383c.tar.gz
gdb-450ca57cacb0f620f94fa16b7ab3ea6e0076383c.tar.bz2
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.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 663e778..57e09b3 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;