8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/overload6.C
Mark Mitchell 00c15f8deb call.c (maybe_handle_implicit_object): Handle QUAL_CONVs.
1998-05-24  Mark Mitchell  <mark@markmitchell.com>
	* call.c (maybe_handle_implicit_object): Handle QUAL_CONVs.  Make
	sure the type of the REF_BIND is a reference type.
	(maybe_handle_ref_bind, compare_ics): Rename reference_type* to
	ref_to_type* for clarity.

From-SVN: r20037
1998-05-24 23:55:20 +00:00

19 lines
181 B
C

extern "C" void abort();
struct S1
{
int f() { return 0; }
int f() const { return 1; }
};
struct S2 : public S1
{
};
int main()
{
S2 s2;
if (s2.f() != 0)
abort ();
}