A properly written C++ program shouldn't make any assumptions about the layout of inherited fields, in any case.
一个正确书写的C++程序在任何情况下都不应该对被继承字段的布局有任何假定。