Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC++multiple and virtual inheritance layoutSingle-choice MCQ

For an empty base class used multiple times, which layout rule of the Itanium C++ ABI applies, and what is the consequence here?

struct E {}; // empty struct A : E { char a; }; struct B : E { char b; }; struct C : A, B { };