This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Multiple inheritance
- To: egcs at cygnus dot com
- Subject: Multiple inheritance
- From: "Joshua S. Allen" <allen at eecs dot tulane dot edu>
- Date: Mon, 1 Dec 1997 09:05:40 -0600 (CST)
I am making modifications to the gnu g++
compiler to include automatic conflict resolution of multiple inheritance
using a linearization algorithm. I have the algorithm implemented but I
need to interface it with the compiler. I am hoping that someone could
explain a few things to me.
(1) I need to construct a table of direct parents of a class. Whereas this
could easily be done at parse time, it is presenting me with problems and I
was wondering if you could direct me to how this information could be
extracted from the parse tree.
(2) I am adding the algorithm within the function lookup_fnfields
(cp/search.c) where
errstr = "request for method %D' is ambiguous";
Once I locate the method in a class, what is the format of the return
value I give to the calling function. I need a way of telling the calling
function the particular method within a specific class to use.
If anyone could answer these questions I would really appreciate it. Thanks
for your time.
--Joshua Allen
allen@eecs.tulane.edu