mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 03:42:22 +08:00
* c-exp.y: Moved handling of 'const' and 'volatile' from
<type> to <typebase>. This removes 2 conflicts.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user