An accessible base class shall not be both virtual and non-virtual in the same hierarchy
An accessible base class shall not be both virtual and non-virtual in the same hierarchy.
The checker flags situations where the same class is inherited as a virtual base class and a non-virtual base class in the same derived class. These situations defeat the purpose of virtual inheritance and causes multiple copies of the base class sub-object in the derived class object.
If you expect a rule violation but do not see it, refer to the documentation for Polyspace® Code Prover™ or Polyspace Code Prover Server™.
| Group: Derived Classes |
| Category: Required |