[Bug lto/69630] [6 Regression] LTO ICE in types_same_for_odr at ipa-devirt.c:402

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 11 04:06:00 GMT 2016


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.


More information about the Gcc-bugs mailing list