https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87957
--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Wed Nov 21 17:31:19 2018 New Revision: 266350 URL: https://gcc.gnu.org/viewcvs?rev=266350&root=gcc&view=rev Log: PR lto/87957 * tree.c (fld_decl_context): Break out from ... (free_lang_data_in_decl): ... here; free TREE_PUBLIC, TREE_PRIVATE DECL_ARTIFICIAL of TYPE_DECL; do not free TREE_TYPE of TYPE_DECL. (fld_incomplete_type_of): Build copy of TYP_DECL. * ipa-devirt.c (free_enum_values): Rename to ... (free_odr_warning_data): ... this one; free also duplicated TYPE_DECLs and TREE_TYPEs of TYPE_DECLs. (get_odr_type): Initialize odr_vtable_hash if needed. Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-devirt.c trunk/gcc/tree.c