* parse.y (variable_declarator_id): Simplify error path for
array declarator error. For PR java/8003.
From-SVN: r57934
+2002-10-08 Tom Tromey <tromey@redhat.com>
+
+ * parse.y (variable_declarator_id): Simplify error path for
+ array declarator error. For PR java/8003.
+
2002-10-08 Zack Weinberg <zack@codesourcery.com>
* gjavah.c, jcf-dump.c, jv-scan.c: Globally replace GCCBUGURL with
{yyerror ("Invalid declaration"); DRECOVER(vdi);}
| variable_declarator_id OSB_TK error
{
- tree node = java_lval.node;
- if (node && (TREE_CODE (node) == INTEGER_CST
- || TREE_CODE (node) == EXPR_WITH_FILE_LOCATION))
- yyerror ("Can't specify array dimension in a declaration");
- else
- yyerror ("']' expected");
+ yyerror ("']' expected");
DRECOVER(vdi);
}
| variable_declarator_id CSB_TK error