pointers to member functions with multiple inheritance

Andrew Boardman boardman@wbourne.com
Sat Jan 8 23:20:00 GMT 2000


In one of those thoughts that strikes me right before I fall asleep, I
realized that what is probably happening is a bug related to the virtual
inheritance of the class that defines the member function I'm getting a
pointer to.  This was verified when I commented out the virtual inheritance
and the code ran perfectly.

Hope that helps,

-- Andrew
WindBourne, Inc.
Software Development Consulting
(303) 522-6920

-----Original Message-----
From: Martin v. Loewis [ mailto:martin@loewis.home.cs.tu-berlin.de ]
Sent: Friday, January 07, 2000 2:05 AM
To: boardman@wbourne.com
Cc: gcc-bugs@gcc.gnu.org
Subject: Re: pointers to member functions with multiple inheritance

> It involves using pointers to member functions when the member function
> belongs to a class that has multiple parents.  In the example code,
> basically identical code is show for single inheritance (which works), and
> multiple, which seg faults.

Thanks for your bug report. The mainline compiler (2.96 19991222
(experimental)) has the bug fixed. If you want to apply the fix to
your compiler, you can get it from



More information about the Gcc-bugs mailing list