This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/17845] [4.1 Regression] More problems with simple type names as superclasses
- From: "bonzini at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 May 2005 08:09:19 -0000
- Subject: [Bug java/17845] [4.1 Regression] More problems with simple type names as superclasses
- References: <20041005154252.17845.tromey@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bonzini at gcc dot gnu dot org 2005-05-12 08:09 -------
This code in do_resolve_class seems bogus to me. Fixing it removes the failure.
Note that java.security is in the package_list because of Dummy.java, but it
absolutely does *not* belong in the search path!
This is the only use of package_list, by the way.
/* 5- Try with a name qualified with the package names we've seen so far */
if (!QUALIFIED_P (TYPE_NAME (class_type)))
{
tree package;
/* If there is a current package (ctxp->package), it's the first
element of package_list and we can skip it. */
for (package = (ctxp->package ?
TREE_CHAIN (package_list) : package_list);
package; package = TREE_CHAIN (package))
if ((new_class_decl = qualify_and_find (class_type,
TREE_PURPOSE (package),
TYPE_NAME (class_type))))
return new_class_decl;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17845