This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/22060] javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath)
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2005 19:42:49 -0000
- Subject: [Bug java/22060] javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath)
- References: <20050614104518.22060.mark@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-15 19:42 -------
I looked at this a little bit.
There are two choices for the problem here.
One is that find_applicable_accessible_methods_list is returning
too much. For the call in question, it returns Object.clone,
Inner.clone, and Bar.clone
However, this seems to be what is intended.
The second choice for the problem is that find_most_specific_methods_list
is not correctly removing Inner.clone from the list of most specific methods.
This function is a bit strange in that it has special cases for inner
classes, e.g.:
int v = (DECL_SPECIFIC_COUNT (current_v) +=
(INNER_CLASS_TYPE_P (DECL_CONTEXT (current_v)) ? 2 : 1));
... which don't make sense to me.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.0.0 4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22060