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