PR c++/18073 PR c++/10841 * cp-tree.h (convert_to_base): Change prototype. (build_ptrmemfunc): Likewise. (convert_ptrmem): New function. * call.c (struct conversion): Adjust documentation for base_p. (standard_conversion): Set base_p for ck_pmem conversions as appropriate. (convert_like_real): Use convert_to_base for ck_pmem and ck_ptr conversions. * class.c (convert_to_base): Handle both pointers and objects. Add nonnull parameter. (build_vfield_ref): Adjust call to convert_to_base. * cvt.c (cp_convert_to_pointer): Adjust call to build_ptrmemfunc. (convert_force): Likewise. * typeck.c (build_unary_op): Likewise. (convert_ptrmem): New function. (build_static_cast_1): Use it. (build_reinterpret_cast): Allow conversions to vector types. (get_delta_difference): Add c_cast_p parameter. (build_ptrmemfunc): Likewise. Adjust calls to get_delta_difference. PR c++/10841 * g++.dg/conversion/cast1.C: New test. * g++.dg/overload/pmf1.C: Adjust error marker. From-SVN: r89403
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
VLA.C | Loading commit data... | |
addr1.C | Loading commit data... | |
ambig1.C | Loading commit data... | |
ambig2.C | Loading commit data... | |
builtin1.C | Loading commit data... | |
builtin2.C | Loading commit data... | |
builtin3.C | Loading commit data... | |
cond1.C | Loading commit data... | |
ellipsis1.C | Loading commit data... | |
error1.C | Loading commit data... | |
koenig1.C | Loading commit data... | |
member1.C | Loading commit data... | |
member2.C | Loading commit data... | |
new1.C | Loading commit data... | |
operator-star-1.C | Loading commit data... | |
operator1.C | Loading commit data... | |
pmf1.C | Loading commit data... | |
prom1.C | Loading commit data... | |
ref1.C | Loading commit data... | |
scope1.C | Loading commit data... | |
template1.C | Loading commit data... | |
template2.C | Loading commit data... | |
using1.C | Loading commit data... | |
virtual1.C | Loading commit data... |