pointers to member functions with multiple inheritance

Andrew Boardman boardman@wbourne.com
Fri Jan 7 00:27:00 GMT 2000


Enclosed are both the source file and the .ii file that should reproduce the
behaviour.

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.

Under gdb the pointer to the member function just plain looks wrong, but
again it all works perfectly if there isn't multiple inheritance.

Thanks,

-- Andrew
WindBourne, Inc.
Software Development Consulting
http://www.wbourne.com
(303) 522-6920
-------------- next part --------------
A non-text attachment was scrubbed...
Name: g++bug.cpp
Type: text/x-c++
Size: 1735 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000107/fa10eddc/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: g++bug.ii.bz2
Type: application/x-bzip2
Size: 21465 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000107/fa10eddc/attachment.bz2>


More information about the Gcc-bugs mailing list