This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/22369] C++ produces mis-matched types with pointers to member functions


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-08 16:30 -------
Oh, I copied the wrong testcase.
Anyways here is the testcase which fails:
struct A { void f() { } };
struct B: public A { };
struct C: public A { };
struct D : public B, public C { };

typedef void (C::*cp)();
typedef void (D::*dp)();

int main()
{
  cp c;
  dp d2 = c;
}
pmf6.C:12: error: statement types mismatch
d2D.1741.__pfnD.1734 = D.1742;

DD.1726:: *
CD.1724:: *

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22369


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]