https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87156
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Does the attached patch fix the bootstrap? Index: cgraphclones.c =================================================================== --- cgraphclones.c (revision 264180) +++ cgraphclones.c (working copy) @@ -967,6 +967,8 @@ cgraph_node::create_version_clone_with_b SET_DECL_ASSEMBLER_NAME (new_decl, DECL_NAME (new_decl)); SET_DECL_RTL (new_decl, NULL); + DECL_VIRTUAL_P (new_decl) = 0; + /* When the old decl was a con-/destructor make sure the clone isn't. */ DECL_STATIC_CONSTRUCTOR (new_decl) = 0; DECL_STATIC_DESTRUCTOR (new_decl) = 0;