mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-22 13:34:53 +08:00
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:
parent
2f418289ef
commit
c187b20ed1
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user