https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87809
--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Tue Mar 19 14:53:43 2019 New Revision: 269799 URL: https://gcc.gnu.org/viewcvs?rev=269799&root=gcc&view=rev Log: PR lto/87809 PR lto/89335 * tree.c (free_lang_data_in_decl): Do not free context of C++ destrutors. * g++.dg/lto/pr87089_0.C: New testcase. * g++.dg/lto/pr87089_1.C: New testcase. * g++.dg/lto/pr89335_0.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/lto/pr87089_0.C trunk/gcc/testsuite/g++.dg/lto/pr87089_1.C trunk/gcc/testsuite/g++.dg/lto/pr89335_0.C Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree.c