8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/overload5.C
Mark Mitchell ceab47eb37 call.c (compare_qual): Remove.
* call.c (compare_qual): Remove.
	(is_subseq): Tweak.
	(is_properly_derived_from): New function.
	(maybe_handle_ref_bind): Likewise.
	(maybe_handle_implicit_object): Likewise.
	(compare_ics): Modify substantially to bring into conformance with
	the standard.
	* cp-tree.h (TYPE_PTRMEMFUNC_OBJECT_TYPE): New macro.
	(comp_cv_qualification): Declare.
	(comp_cv_qual_signature): Likewise.
	* typeck.c (comp_cv_qualification): Likewise.
	(comp_cv_qual_signature): Likewise.

From-SVN: r19880
1998-05-19 14:51:38 +00:00

23 lines
249 B
C

// Build don't run:
struct S {};
struct T : public S {};
struct U : public T {};
void f(int T::*) {}
void f(int U::*);
void g(void (T::*)(int)) {}
void g(void (U::*)(int));
int main()
{
int S::*ip;
void (S::*fp)(int);
f(ip);
g(fp);
}