http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57084
--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> 2013-05-03 12:17:20 UTC --- > @@ -1993,6 +1994,18 @@ ipa_intraprocedural_devirtualization (gi > token = OBJ_TYPE_REF_TOKEN (otr); > fndecl = gimple_get_virt_method_for_binfo (tree_low_cst (token, 1), > binfo); > + if (!fndecl) > + return NULL_TREE; > + > + callee = cgraph_get_node (fndecl); > + if (!callee || callee->global.inlined_to) > + { > + if (!canonicalize_constructor_val (fndecl, NULL) fndecl = canonicalize_constructor_val (fndecl, NULL) Why do you need TREE_PUBLIC check? Honza