From a22229c4cdeb757dcd1d910c0e11b3c5b915e6a4 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 2 Aug 2006 03:13:20 +0000 Subject: [PATCH] * c-exp.y (type): Remove incorrect pointer to member case. * objc-exp.y (type): Likewise. * p-exp.y (type): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/c-exp.y | 4 +--- gdb/objc-exp.y | 2 -- gdb/p-exp.y | 2 -- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c61bcb42c48..2aba9bceb83 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2006-08-01 Daniel Jacobowitz + + * c-exp.y (type): Remove incorrect pointer to member case. + * objc-exp.y (type): Likewise. + * p-exp.y (type): Likewise. + 2006-08-01 Mark Kettenis * arm-tdep.h (enum struct_return): New. 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 */ diff --git a/gdb/objc-exp.y b/gdb/objc-exp.y index 7b0ca39939d..c36ed6cf168 100644 --- a/gdb/objc-exp.y +++ b/gdb/objc-exp.y @@ -858,8 +858,6 @@ func_mod: '(' ')' is a pointer to member type. Stroustrup loses again! */ type : ptype - | typebase COLONCOLON '*' - { $$ = lookup_member_type (builtin_type_int, $1); } ; typebase /* Implements (approximately): (type-qualifier)* type-specifier. */ diff --git a/gdb/p-exp.y b/gdb/p-exp.y index e095a35b99c..b6279aee55e 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -718,8 +718,6 @@ ptype : typebase is a pointer to member type. Stroustrup loses again! */ type : ptype - | typebase COLONCOLON '*' - { $$ = lookup_member_type (builtin_type_int, $1); } ; typebase /* Implements (approximately): (type-qualifier)* type-specifier */ -- 2.30.2