]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR ipa/69630
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Mar 2016 16:05:59 +0000 (16:05 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Mar 2016 16:05:59 +0000 (16:05 +0000)
* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
on cxa_pure_virtual.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234114 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-devirt.c

index df399095f085b0c68f7b94d9a5f83852ab743feb..f65902b9c0ffe9bf98cfc592e714145118bb26a2 100644 (file)
@@ -1,3 +1,9 @@
+2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR ipa/69630
+       * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
+       on cxa_pure_virtual.
+
 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
 
        PR lto/69589
index 2da5c013cf5f8e5ce53ce8f701f282455ce7edf0..e4fb56210f6aef15288e15c761f4ff6b5cb3677d 100644 (file)
@@ -3177,11 +3177,11 @@ possible_polymorphic_call_targets (tree otr_type,
 
          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 ())
                    {