This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21455] type 'X' is not a base type for type 'X' in pointer to member conversion
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2005 23:48:02 -0000
- Subject: [Bug c++/21455] type 'X' is not a base type for type 'X' in pointer to member conversion
- References: <20050508212707.21455.pluto@agmk.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pluto at agmk dot net 2005-05-08 23:47 -------
reduced testcase:
class A;
typedef bool (A::*FuncPtr)();
class B {
public:
FuncPtr foo() const { return fp1; }
FuncPtr bar() const { return fp2; }
private:
FuncPtr fp1, fp2;
};
In member function 'bool (A::* B::bar() const)()':
error: type 'A' is not a base type for type 'A'
error: in pointer to member conversion
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455