[Bug c++/12831] [3.3 regression] ICE with passing reference to bound pointer-to-member-function
waldeinburg at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Thu Oct 30 15:45:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list