summaryrefslogtreecommitdiff
path: root/gdb/ch-exp.y
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1993-04-09 07:52:50 +0000
committerPer Bothner <per@bothner.com>1993-04-09 07:52:50 +0000
commit47f366bc62157d9d70eab8b6de120e67012bdfb7 (patch)
treef14f2e7808b661f825825c7ea3102aa058b8df54 /gdb/ch-exp.y
parentcabd4da684520537eb21d0d0af95cf5ba3efff30 (diff)
downloadbinutils-gdb-47f366bc62157d9d70eab8b6de120e67012bdfb7.tar.gz
* valarith.c (value_subscript): Add COERCE_REF.
* ch-exp.y (operand_5): We can generalize the 2nd operand of a string repetition ot 'literal' without ambiguity.
Diffstat (limited to 'gdb/ch-exp.y')
-rw-r--r--gdb/ch-exp.y5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/ch-exp.y b/gdb/ch-exp.y
index 6788b551d4b..86c461f98a9 100644
--- a/gdb/ch-exp.y
+++ b/gdb/ch-exp.y
@@ -337,9 +337,6 @@ undefined_value : FIXME_01
/* Z.200, 4.2.1 */
location : access_name
- {
- $$ = 0; /* FIXME */
- }
| primitive_value POINTER
{
write_exp_elt_opcode (UNOP_IND);
@@ -837,7 +834,7 @@ operand_5 : operand_6
{
write_exp_elt_opcode (UNOP_LOGICAL_NOT);
}
- | parenthesised_expression CHARACTER_STRING_LITERAL
+ | parenthesised_expression literal
/* We require the string operand to be a literal, to avoid some
nasty parsing ambiguities. */
{