parse.y (qualify_and_find): Pass type decl, not identifier, to load_class.

* parse.y (qualify_and_find): Pass type decl, not identifier, to
	load_class.

From-SVN: r83728
This commit is contained in:
Bryce McKinlay 2004-06-27 00:34:57 +00:00 committed by Bryce McKinlay
parent b9c042e86f
commit 808fd801de
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-06-26 Bryce McKinlay <mckinlay@redhat.com>
* parse.y (qualify_and_find): Pass type decl, not identifier, to
load_class.
2004-06-26 Bryce McKinlay <mckinlay@redhat.com>
PR java/15734

View File

@ -5891,7 +5891,7 @@ qualify_and_find (tree class_type, tree package, tree name)
if ((new_class_decl = IDENTIFIER_CLASS_VALUE (new_qualified)))
{
if (!CLASS_LOADED_P (TREE_TYPE (new_class_decl)))
load_class (new_qualified, 0);
load_class (TREE_TYPE (new_class_decl), 0);
TYPE_NAME (class_type) = new_qualified;
return IDENTIFIER_CLASS_VALUE (new_qualified);
}