Thoughts on Gengtype and Single Inheritance

Lawrence Crowl
Thu Aug 30 18:55:00 GMT 2012

On 8/30/12, Richard Henderson <> wrote:
> On 08/27/2012 11:58 AM, Lawrence Crowl wrote:
>>> I wonder if the second discriminator support is easily generalizable
>>> to enabling any derived class being a root class on it own with its
>>> own subtree? If I understand correctly, the GTY syntax would be the
>>> same.
>> If I understand correctly, you are suggesting multiple inheritance
>> via enums.  I think it is possible, but I think the tag syntax
>> would need to be changed to more directly associate the tag with
>> the variable.
> I understood Laurynas to be suggesting not multiple inheritance,
> but composition?

But composition would not provide the additional space necessary for
derivation, so there could be no tree under it.  Perhaps an example
would help.

Lawrence Crowl

More information about the Gcc mailing list