https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62091
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Aug 20 01:54:40 2014 New Revision: 214208 URL: https://gcc.gnu.org/viewcvs?rev=214208&root=gcc&view=rev Log: PR c++/61214 PR tree-optimization/62091 * decl2.c (decl_needed_p): Return true for virtual functions when devirtualizing. Added: branches/gcc-4_9-branch/gcc/testsuite/g++.dg/ipa/devirt-39.C Modified: branches/gcc-4_9-branch/gcc/cp/ChangeLog branches/gcc-4_9-branch/gcc/cp/decl2.c