Message ID | 20160310160711.GA47843@kam.mff.cuni.cz |
---|---|
State | New |
Headers | show |
Index: ipa-devirt.c =================================================================== --- ipa-devirt.c (revision 234108) +++ ipa-devirt.c (working copy) @@ -3177,11 +3177,11 @@ possible_polymorphic_call_targets (tree if (!outer_type->all_derivations_known) { - if (!speculative && final_warning_records) + if (!speculative && final_warning_records + && TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE) { if (complete && nodes.length () == 1 - && TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE && warn_suggest_final_types && !outer_type->derived_types.length ()) {