From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Merrill To: allen@eecs.tulane.edu (Joshua S. Allen), egcs@cygnus.com Subject: Re: Multiple inheritance Date: Mon, 01 Dec 1997 18:46:00 -0000 Message-id: References: <199712011505.JAA11781.cygnus.egcs@duvieux.eecs.tulane.edu> X-SW-Source: 1997-12/msg00069.html >>>>> Joshua S Allen writes: > I am making modifications to the gnu g++ compiler to include automatic > conflict resolution of multiple inheritance using a linearization > algorithm. What do you mean? > (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. TYPE_BINFO_BASETYPES (type) is a vector of the direct bases. > (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. lookup_fnfields returns a list where the PURPOSE is the basetype where the functions are found, and the VALUE is the list of functions. Jason