re PR c++/18073 (mmintrin.h rejected by C++ frontend)
authorMark Mitchell <mark@codesourcery.com>
Thu, 21 Oct 2004 21:23:42 +0000 (21:23 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 21 Oct 2004 21:23:42 +0000 (21:23 +0000)
commit08e17d9d1121f0ce5869ddf1283db2449a4bc458
treef2b7fac0767818e1f51fd05dc1e3af743cc2df4b
parent8265f931175625977cb6ad5191a2ae286f71002e
re PR c++/18073 (mmintrin.h rejected by C++ frontend)

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
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/cast1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/overload/pmf1.C