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:
Ranjit Mathew 2005-10-03 17:30:38 +00:00
parent 198438344c
commit 9f1dfd1618
2 changed files with 11 additions and 0 deletions

View File

@ -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:

View File

@ -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;
}
;