* valarith.c (value_subscript): Add COERCE_REF.
authorPer Bothner <per@bothner.com>
Fri, 9 Apr 1993 07:52:50 +0000 (07:52 +0000)
committerPer Bothner <per@bothner.com>
Fri, 9 Apr 1993 07:52:50 +0000 (07:52 +0000)
* ch-exp.y (operand_5):  We can generalize the 2nd operand
of a string repetition ot 'literal' without ambiguity.

gdb/ChangeLog
gdb/ch-exp.y

index 618f527b3638bc59dc41ea954acdb4c238aa0e59..2422d2920bf46134cf33f88b307ca9cbe5998766 100644 (file)
@@ -1,3 +1,9 @@
+Fri Apr  9 00:45:41 1993  Per Bothner  (bothner@rtl.cygnus.com)
+
+       * 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.
+
 Thu Apr  8 10:15:10 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
        * breakpoint.h (struct bpstat): Remove momentary field.
index 6788b551d4bccca185b4ea72f88d37b807f818de..86c461f98a905a9e45a12b915c1272d8c3f9863e 100644 (file)
@@ -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. */
                        {