This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12831] [3.3 regression] ICE with passing reference to bound pointer-to-member-function
- From: "waldeinburg at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2003 15:32:01 -0000
- Subject: [Bug c++/12831] [3.3 regression] ICE with passing reference to bound pointer-to-member-function
- References: <20031029204152.12831.waldeinburg@yahoo.com>
- 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=12831
------- Additional Comments From waldeinburg at yahoo dot com 2003-10-30 15:31 -------
So the following is also a bug (the same bug)?
class foo
{
public:
void bar (void)
{
}
};
int main (void)
{
foo ifoo;
void (foo::* pfun) (void) = & foo::bar;
pfun = ifoo.*pfun;
return 0;
}
I compiles, but I guess it does the same as
void (foo::* pfun) (void) = & ifoo.bar;
which of course triggers an error.