re PR c++/39106 (aliased to undefined symbol error with thunks)
[gcc.git] / gcc / cgraphunit.c
index cd58c2aae0b3d1e071e8be48dcaf291b951ddc18..586ed61c2ae395a495a11d34323fc98e1e712aed 100644 (file)
@@ -1551,10 +1551,11 @@ cgraph_function_versioning (struct cgraph_node *old_version_node,
   TREE_PUBLIC (new_version_node->decl) = 0;
   DECL_COMDAT (new_version_node->decl) = 0;
   DECL_WEAK (new_version_node->decl) = 0;
+  DECL_VIRTUAL_P (new_version_node->decl) = 0;
   new_version_node->local.externally_visible = 0;
   new_version_node->local.local = 1;
   new_version_node->lowered = true;
-  
+
   /* Update the call_expr on the edges to call the new version node. */
   update_call_expr (new_version_node);