parse.y (resolve_package): Initialize "decl".

2002-03-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

	* parse.y (resolve_package): Initialize "decl".
	(lookup_package_type): Remove unused function.

From-SVN: r51500
This commit is contained in:
Bryce McKinlay 2002-03-28 07:41:40 +00:00 committed by Bryce McKinlay
parent 2f418289ef
commit c187b20ed1
2 changed files with 7 additions and 14 deletions

View File

@ -1,3 +1,8 @@
2002-03-28 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* parse.y (resolve_package): Initialize "decl".
(lookup_package_type): Remove unused function.
2002-03-28 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Fix for PR java/5993:

View File

@ -7034,7 +7034,8 @@ static tree
resolve_package (pkg, next, type_name)
tree pkg, *next, *type_name;
{
tree current, decl;
tree current;
tree decl = NULL_TREE;
*type_name = NULL_TREE;
/* The trick is to determine when the package name stops and were
@ -7066,19 +7067,6 @@ resolve_package (pkg, next, type_name)
return decl;
}
static tree
lookup_package_type (name, from)
const char *name;
int from;
{
char subname [128];
const char *sub = &name[from+1];
while (*sub != '.' && *sub)
sub++;
strncpy (subname, name, sub-name);
subname [sub-name] = '\0';
return get_identifier (subname);
}
/* Check accessibility of inner classes according to member access rules.
DECL is the inner class, ENCLOSING_DECL is the class from which the