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++/12831] [3.3 regression] ICE with passing reference to bound pointer-to-member-function


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.


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