This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: pointers to member functions with multiple inheritance
- To: "'Martin v. Loewis'" <martin at loewis dot home dot cs dot tu-berlin dot de>, <boardman at wbourne dot com>
- Subject: RE: pointers to member functions with multiple inheritance
- From: "Andrew Boardman" <boardman at wbourne dot com>
- Date: Sun, 9 Jan 2000 00:20:36 -0700
- Cc: <gcc-bugs at gcc dot gnu dot org>
Martin,
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
http://www.wbourne.com
(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
http://gcc.gnu.org/ml/gcc-patches/1999-09/msg00666.html
Regards,
Martin