This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/17845] [4.1 Regression] More problems with simple type names as superclasses


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]