'identifier' : enum/union cannot be used as a base class
A class was derived from the specified union or enum.
A union or enum is not allowed to be a base class. If another user-defined type must be derived from the specified union/enum, the union/enum should be changed to a class or structure.