This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/59031] [4.8/4.9 Regression] vtable lookup not optimized away


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]