http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60659
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Thu Apr 3 03:55:59 2014 New Revision: 209048 URL: http://gcc.gnu.org/viewcvs?rev=209048&root=gcc&view=rev Log: PR ipa/60659 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type inconsistent code and instead mark the context inconsistent. (possible_polymorphic_call_targets): For inconsistent contexts return empty complete list. * testsuite/g++.dg/torture/pr60659.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/torture/pr60659.C Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-devirt.c trunk/gcc/testsuite/ChangeLog