mirror of git://gcc.gnu.org/git/gcc.git
re PR regression/56162 (PASS->FAIL: g++.old-deja/g++.mike/pmf1.C -std=c++11 execution test (occurs 2 times))
PR c++/56162 PR c++/56104 * typeck.c (get_member_function_from_ptrfunc): Fix ptrmemfunc_vbit_in_delta case. From-SVN: r195614
This commit is contained in:
parent
90b10decd8
commit
b5fbde9215
|
|
@ -1,3 +1,10 @@
|
||||||
|
2013-01-31 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
|
PR c++/56162
|
||||||
|
PR c++/56104
|
||||||
|
* typeck.c (get_member_function_from_ptrfunc): Fix
|
||||||
|
ptrmemfunc_vbit_in_delta case.
|
||||||
|
|
||||||
2013-01-29 Jason Merrill <jason@redhat.com>
|
2013-01-29 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
PR libstdc++/54314
|
PR libstdc++/54314
|
||||||
|
|
|
||||||
|
|
@ -3176,9 +3176,7 @@ get_member_function_from_ptrfunc (tree *instance_ptrptr, tree function,
|
||||||
e3 = pfn_from_ptrmemfunc (function);
|
e3 = pfn_from_ptrmemfunc (function);
|
||||||
delta = delta_from_ptrmemfunc (function);
|
delta = delta_from_ptrmemfunc (function);
|
||||||
idx = build1 (NOP_EXPR, vtable_index_type, e3);
|
idx = build1 (NOP_EXPR, vtable_index_type, e3);
|
||||||
if (nonvirtual)
|
switch (TARGET_PTRMEMFUNC_VBIT_LOCATION)
|
||||||
e1 = integer_zero_node;
|
|
||||||
else switch (TARGET_PTRMEMFUNC_VBIT_LOCATION)
|
|
||||||
{
|
{
|
||||||
case ptrmemfunc_vbit_in_pfn:
|
case ptrmemfunc_vbit_in_pfn:
|
||||||
e1 = cp_build_binary_op (input_location,
|
e1 = cp_build_binary_op (input_location,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue