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]

RE: pointers to member functions with multiple inheritance


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


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