http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59031
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Sun Nov 24 02:44:09 2013 New Revision: 205323 URL: http://gcc.gnu.org/viewcvs?rev=205323&root=gcc&view=rev Log: PR c++/59031 * call.c (build_new_method_call_1): Comnpare function context with BASELINK_BINFO type rather than instance type before marking the call with LOOKUP_NONVIRTUAL. Added: branches/gcc-4_8-branch/gcc/testsuite/g++.dg/inherit/virtual11.C Modified: branches/gcc-4_8-branch/gcc/cp/ChangeLog branches/gcc-4_8-branch/gcc/cp/call.c branches/gcc-4_8-branch/gcc/cp/cp-tree.h