re PR lto/87089 (tree check: expected class 'type', have 'declaration' (namespace_dec...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 19 Mar 2019 14:53:43 +0000 (15:53 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 19 Mar 2019 14:53:43 +0000 (14:53 +0000)
commit2ca6d1813e47d235bb5f001b1a99b19652ea408a
treeb13250450205e19610d8556959467ff737bb3610
parent9195aa172bbc20627f23bfb1612180c83a0a7bab
re PR lto/87089 (tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h)

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.

From-SVN: r269799
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr87089_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr87089_1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr89335_0.C [new file with mode: 0644]
gcc/tree.c