mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 21:45:51 +08:00
re PR java/24127 (ICE in libjava.compile/PR6865.java reported as "PASS" in testsuite.)
PR java/24127 * parse.y (method_header): Make the result of the rule a NULL_TREE when a parsing error occurs. From-SVN: r104899
This commit is contained in:
parent
198438344c
commit
9f1dfd1618
@ -1,3 +1,9 @@
|
||||
2005-10-03 Ranjit Mathew <rmathew@gcc.gnu.org>
|
||||
|
||||
PR java/24127
|
||||
* parse.y (method_header): Make the result of the rule a NULL_TREE
|
||||
when a parsing error occurs.
|
||||
|
||||
2005-09-29 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR java/24120:
|
||||
|
@ -1034,26 +1034,31 @@ method_header:
|
||||
| type error
|
||||
{
|
||||
yyerror ("Invalid method declaration, method name required");
|
||||
$$ = NULL_TREE;
|
||||
RECOVER;
|
||||
}
|
||||
| modifiers type error
|
||||
{
|
||||
yyerror ("Identifier expected");
|
||||
$$ = NULL_TREE;
|
||||
RECOVER;
|
||||
}
|
||||
| VOID_TK error
|
||||
{
|
||||
yyerror ("Identifier expected");
|
||||
$$ = NULL_TREE;
|
||||
RECOVER;
|
||||
}
|
||||
| modifiers VOID_TK error
|
||||
{
|
||||
yyerror ("Identifier expected");
|
||||
$$ = NULL_TREE;
|
||||
RECOVER;
|
||||
}
|
||||
| modifiers error
|
||||
{
|
||||
yyerror ("Invalid method declaration, return type required");
|
||||
$$ = NULL_TREE;
|
||||
RECOVER;
|
||||
}
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user