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++/21455] type 'X' is not a base type for type 'X' in pointer to member conversion


------- 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


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