* ch-exp.y (maybe_expression_list): New non-terminal.
authorPer Bothner <per@bothner.com>
Sun, 12 Feb 1995 19:18:00 +0000 (19:18 +0000)
committerPer Bothner <per@bothner.com>
Sun, 12 Feb 1995 19:18:00 +0000 (19:18 +0000)
(primitive_value):  Allow empty parameter list.

gdb/ChangeLog
gdb/ch-exp.y

index f3e0bfb9af834016d60f51aed7b4be3ec59f3f61..fea812f8924d85a2e019a751cb8b7013c54fec83 100644 (file)
@@ -1,3 +1,8 @@
+Sun Feb 12 11:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
+
+       * ch-exp.y (maybe_expression_list):  New non-terminal.
+       (primitive_value):  Allow empty parameter list.
+
 Sun Feb 12 10:02:16 1995  Per Bothner  <bothner@cygnus.com>
 
        * buildsym.c (finish_block):  If finishing a function without known
index 8b76979091416e569ffd8c0c17f2c22093a4d0ab..c87157c4654897ea75e30367a0a20bf6f2e8eeda 100644 (file)
@@ -367,6 +367,13 @@ expression_list    :       expression
                        }
                ;
 
+maybe_expression_list: /* EMPTY */
+                       {
+                         arglist_len = 0;
+                       }
+               |       expression_list
+               ;
+
 
 /* Z.200, 5.2.1 */
 
@@ -382,7 +389,7 @@ rparen              :       ')'
 
 primitive_value        :
                        access_name
-               |       primitive_value_lparen expression_list rparen
+               |       primitive_value_lparen maybe_expression_list rparen
                        {
                          write_exp_elt_opcode (MULTI_SUBSCRIPT);
                          write_exp_elt_longcst ($3);