re PR lto/85078 (LTO ICE: tree check: expected tree that contains 'decl minimal'...
authorJan Hubicka <jh@suse.cz>
Tue, 10 Apr 2018 06:33:38 +0000 (08:33 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 10 Apr 2018 06:33:38 +0000 (06:33 +0000)
commitc1b8f25d8090e778b330555005c81bc0c582a6b8
tree7820fbe8f54a1910d5b3f0a145e1fea2b418a3e4
parentf518da46fbbdd79ab13417440198110dc9fc96d3
re PR lto/85078 (LTO ICE: tree check: expected tree that contains 'decl minimal' structure, have 'identifier_node' in decl_mangling_context, at cp/mangle.c:878)

PR lto/85078
* ipa-devirt.c (rebuild_type_inheritance-hash): New.
* ipa-utils.h (rebuild_type_inheritance-hash): Declare.
* tree.c (free_lang_data_in_type): Fix handling of binfos;
walk basetypes.
(free_lang_data): Rebuild type inheritance graph.
* g++.dg/torture/pr85078.C: New.

From-SVN: r259264
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/ipa-utils.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr85078.C [new file with mode: 0644]
gcc/tree.c