Find virtual function matching identifier and type. Used to build virtual function tables for interface implementations.
Determine if 'this' has complete base class information. This is used to detect forward references in covariant overloads.
Determine if 'this' is a base class of cd.
Determine if 'this' is a base class of cd. This is used to detect circular inheritance only.
Search base classes in depth-first, left-to-right order for a class or interface named 'ident'. Stops at first found. Does not look for additional matches.
Determine if slot 0 of the vtbl[] is reserved for something else. For class objects, yes, this is where the classinfo ptr goes. For COM interfaces, no. For non-COM interfaces, yes, this is where the Interface ptr goes.
Create a new scope from sc. semantic, semantic2 and semantic3 will use this for aggregate members.
Find all instance fields, then push them into fields.
Collect all instance fields, then determine instance size.
Calculate fieldi.overlapped and overlapUnsafe, and check that all of explicit field initializers have unique memory space on instance.
Fill out remainder of elements[] with default initializers for fields[].
Do byte or word alignment as necessary. Align sizes of 0, as we may not know array sizes yet.
Place a member (mem) into an aggregate (agg), which can be a struct, union or class
Returns true if there's an extra member which is the 'this' pointer to the enclosing context (enclosing aggregate or function)
Look for constructor declaration.