https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64378
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Sun Jan 18 17:31:35 2015 New Revision: 219822 URL: https://gcc.gnu.org/viewcvs?rev=219822&root=gcc&view=rev Log: PR ipa/64378 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative flag correctly. * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation. * g++.dg/torture/pr64378.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/torture/pr64378.C Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-cp.c trunk/gcc/ipa-prop.c trunk/gcc/testsuite/ChangeLog