aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-11-29 20:43:24 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-11-29 12:43:24 -0800
commit97f30284494903c0141cdd2808022749e7a1175b (patch)
treefdd405faa327f42de6ca8118cfc0b99fa022394a /gcc/java/parse.y
parent9b811d11de8f2ccac62759a2c78fae00b6a3f4c4 (diff)
downloadgcc-97f30284494903c0141cdd2808022749e7a1175b.zip
gcc-97f30284494903c0141cdd2808022749e7a1175b.tar.gz
gcc-97f30284494903c0141cdd2808022749e7a1175b.tar.bz2
parse.y (catch_clause_parameter:): Still set `$$' to NULL_TREE in case of error.
Tue Nov 23 10:55:18 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (catch_clause_parameter:): Still set `$$' to NULL_TREE in case of error. Error message tuned. This fixes a catch clause error handling reported on the java-discuss mailing list: http://sourceware.cygnus.com/ml/java-discuss/1999-q4/msg00358.html From-SVN: r30710
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index d1123cb..cf5c863 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -1732,11 +1732,14 @@ catch_clause_parameter:
EXPR_WFL_LINECOL ($$) = $1.location;
}
| CATCH_TK error
- {yyerror ("'(' expected"); RECOVER;}
+ {yyerror ("'(' expected"); RECOVER; $$ = NULL_TREE;}
| CATCH_TK OP_TK error
- {yyerror ("Missing term or ')' expected"); DRECOVER (2);}
+ {
+ yyerror ("Missing term or ')' expected");
+ RECOVER; $$ = NULL_TREE;
+ }
| CATCH_TK OP_TK error CP_TK /* That's for () */
- {yyerror ("')' expected"); DRECOVER (1);}
+ {yyerror ("Missing term"); RECOVER; $$ = NULL_TREE;}
;
finally: