re PR c++/59031 (vtable lookup not optimized away)
authorEaswaran Raman <eraman@google.com>
Sat, 23 Nov 2013 21:01:46 +0000 (21:01 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 23 Nov 2013 21:01:46 +0000 (16:01 -0500)
commitf8b0f44f2e5437e06e6def089f81d53a3ee2ce38
tree971f6a535d597aa1a2375e50049f8a5f22a27d8d
parent18768faed3875e1d33b122fbf867788add95f056
re PR c++/59031 (vtable lookup not optimized away)

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.

From-SVN: r205317
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/testsuite/g++.dg/inherit/virtual11.C [new file with mode: 0644]