This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22369] C++ produces mis-matched types with pointers to member functions
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2005 16:30:14 -0000
- Subject: [Bug c++/22369] C++ produces mis-matched types with pointers to member functions
- References: <20050708153215.22369.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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