aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index b728554..555541c 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -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;
}
;