Commit 079cd854 by Jan Hubicka Committed by Jan Hubicka

re PR lto/69630 (LTO ICE in types_same_for_odr at ipa-devirt.c:402)

	PR ipa/69630
	* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
	on cxa_pure_virtual.

From-SVN: r234114
parent 2b9c477e
2016-03-10 Jan Hubicka <hubicka@ucw.cz>
PR ipa/69630
* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
on cxa_pure_virtual.
2016-03-10 Jan Hubicka <hubicka@ucw.cz>
PR lto/69589
* tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
......
......@@ -3177,11 +3177,11 @@ possible_polymorphic_call_targets (tree otr_type,
if (!outer_type->all_derivations_known)
{
if (!speculative && final_warning_records)
if (!speculative && final_warning_records
&& TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE)
{
if (complete
&& nodes.length () == 1
&& TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE
&& warn_suggest_final_types
&& !outer_type->derived_types.length ())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment