mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-26 15:19:45 +08:00
re PR java/8003 (gcj segfaults on simple java line of code)
* parse.y (variable_declarator_id): Simplify error path for array declarator error. For PR java/8003. From-SVN: r57934
This commit is contained in:
parent
36624850a4
commit
8f6d2e96a0
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -1000,12 +1000,7 @@ variable_declarator_id:
|
||||
{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
|
||||
|
Loading…
Reference in New Issue
Block a user