This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/8171] Cannot compare pointer to member function of base and derived class
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2003 19:00:10 -0000
- Subject: [Bug c++/8171] Cannot compare pointer to member function of base and derived class
- References: <20021008110600.8171.zyzstar@ibl.sk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8171
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at physics dot uc
| |dot edu
Last reconfirmed|2003-05-03 00:00:00 |2003-07-22 19:00:10
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-22 19:00 -------
Here is a shorter one that can be able to put in gcc's testsuite:
extern "C" void abort();
extern "C" void exit(int);
struct A
{
int f() {}
};
struct B : A
{
};
int main()
{
int (A::*pa)() = &A::f;
int (B::*pb)() = &B::f;
if(! (pa == pb))
abort();
exit(0);
}