This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
pointers to member functions with multiple inheritance
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: pointers to member functions with multiple inheritance
- From: "Andrew Boardman" <boardman at wbourne dot com>
- Date: Fri, 7 Jan 2000 01:27:30 -0700
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
g++bug.ii.bz2
g++bug.cpp