https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69630
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Uhm, a fallout from the patch allowing cxa_pure_virtual in the list of possible targets. Index: ipa-devirt.c =================================================================== --- ipa-devirt.c (revision 233314) +++ ipa-devirt.c (working copy) @@ -3197,6 +3198,7 @@ if (complete && warn_suggest_final_methods && nodes.length () == 1 + && TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE && types_same_for_odr (DECL_CONTEXT (nodes[0]->decl), outer_type->type)) { should fix the testcase. Will test the patch ASAP.