]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(initelt): The equal sign is optional when positioning to a single
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 1 Jul 1994 23:09:49 +0000 (19:09 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 1 Jul 1994 23:09:49 +0000 (19:09 -0400)
element of an array.

From-SVN: r7637

gcc/c-parse.in

index d3c6cad4b68511e2dfb143edd250c84b231e0dd6..c6403e56a5b009119d237a76c7ab8d3a97d2783e 100644 (file)
@@ -1154,6 +1154,9 @@ ifc
        | '[' expr_no_commas ']' '='
                { set_init_index ($2, NULL_TREE); }
          initelt
+       | '[' expr_no_commas ']'
+               { set_init_index ($2, NULL_TREE); }
+         initelt
 end ifc
        | identifier ':'
                { set_init_label ($1); }