mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-28 01:04:35 +08:00
re PR java/6865 (gcj: segmentation fault on incorrect input)
* parse.y (method_header): Give error message in all cases. Fixes PR java/6865. From-SVN: r54504
This commit is contained in:
parent
1632a23685
commit
950ac1d321
@ -1,3 +1,8 @@
|
||||
2002-06-09 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* parse.y (method_header): Give error message in all cases.
|
||||
Fixes PR java/6865.
|
||||
|
||||
2002-06-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
Don't use RTL inlining. Fix for PR java/6820.
|
||||
|
@ -1048,11 +1048,20 @@ method_header:
|
||||
RECOVER;
|
||||
}
|
||||
| modifiers type error
|
||||
{RECOVER;}
|
||||
{
|
||||
yyerror ("Identifier expected");
|
||||
RECOVER;
|
||||
}
|
||||
| VOID_TK error
|
||||
{yyerror ("Identifier expected"); RECOVER;}
|
||||
{
|
||||
yyerror ("Identifier expected");
|
||||
RECOVER;
|
||||
}
|
||||
| modifiers VOID_TK error
|
||||
{yyerror ("Identifier expected"); RECOVER;}
|
||||
{
|
||||
yyerror ("Identifier expected");
|
||||
RECOVER;
|
||||
}
|
||||
| modifiers error
|
||||
{
|
||||
yyerror ("Invalid method declaration, return type required");
|
||||
|
Loading…
Reference in New Issue
Block a user