This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59031] [4.8/4.9 Regression] vtable lookup not optimized away
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 24 Nov 2013 02:44:12 +0000
- Subject: [Bug c++/59031] [4.8/4.9 Regression] vtable lookup not optimized away
- Auto-submitted: auto-generated
- References: <bug-59031-4 at http dot gcc dot gnu dot org/bugzilla/>
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