From 10a297b791581525c47d2d08faf8709ef315463a Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Mon, 19 Oct 1992 19:46:05 +0000 Subject: [PATCH] * c-exp.y: Moved handling of 'const' and 'volatile' from to . This removes 2 conflicts. --- gdb/ChangeLog | 5 +++++ gdb/c-exp.y | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 827bf4880ec..17b3d2bf9c1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 19 12:45:23 1992 Per Bothner (bothner@cygnus.com) + + * c-exp.y: Moved handling of 'const' and 'volatile' from + to . This removes 2 conflicts. + Sun Oct 18 00:36:30 1992 Fred Fish (fnf@cygnus.com) * breakpoint.c (breakpoint_re_set_one): Don't delete watchpoints diff --git a/gdb/c-exp.y b/gdb/c-exp.y index fa8ebb90b99..3389142c786 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -834,12 +834,9 @@ type : ptype { $$ = lookup_member_type (lookup_function_type ($1), $3); free ((PTR)$8); } - /* "const" and "volatile" are curently ignored. */ - | CONST_KEYWORD type { $$ = $2; } - | VOLATILE_KEYWORD type { $$ = $2; } ; -typebase +typebase /* Implements (approximately): (type-qualifier)* type-specifier */ : TYPENAME { $$ = $1.type; } | INT_KEYWORD @@ -888,6 +885,9 @@ typebase { $$ = lookup_template_type(copy_name($2), $4, expression_context_block); } + /* "const" and "volatile" are curently ignored. */ + | CONST_KEYWORD typebase { $$ = $2; } + | VOLATILE_KEYWORD typebase { $$ = $2; } ; typename: TYPENAME -- 2.30.2