summaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-08-02 03:13:20 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-08-02 03:13:20 +0000
commitc5534e68be4b3fe66f6377bc24c74977f7d74d34 (patch)
treedf8cfa5c601611889bdef9abbfab8b82cfdad3ec /gdb/c-exp.y
parentde8083030c9c4f513eaa9af41e626b65c9e3318c (diff)
downloadgdb-c5534e68be4b3fe66f6377bc24c74977f7d74d34.tar.gz
* c-exp.y (type): Remove incorrect pointer to member case.
* objc-exp.y (type): Likewise. * p-exp.y (type): Likewise.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 1955fc0adec..520dac46315 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -790,7 +790,7 @@ func_mod: '(' ')'
{ free ($2); $$ = 0; }
;
-/* We used to try to recognize more pointer to member types here, but
+/* We used to try to recognize pointer to member types here, but
that didn't work (shift/reduce conflicts meant that these rules never
got executed). The problem is that
int (foo::bar::baz::bizzle)
@@ -799,8 +799,6 @@ func_mod: '(' ')'
is a pointer to member type. Stroustrup loses again! */
type : ptype
- | typebase COLONCOLON '*'
- { $$ = lookup_member_type (builtin_type (current_gdbarch)->builtin_int, $1); }
;
typebase /* Implements (approximately): (type-qualifier)* type-specifier */