On 05/09/2011 05:55 PM, Ville Voutilainen wrote:
+ overrides_found = look_for_overrides (ctype, decl);
if ((DECL_DESTRUCTOR_P (decl)
|| IDENTIFIER_VIRTUAL_P (DECL_NAME (decl))
|| DECL_CONV_FN_P (decl))
-&& look_for_overrides (ctype, decl)
+&& overrides_found
&& !DECL_STATIC_FUNCTION_P (decl))
This is breaking an optimization: before this change we don't bother looking for overrides if we've never seen a virtual function with the same name. Just set overrides_found as well as DECL_VINDEX.
Jason
