You just can't inherit from an enum, that's it. Wanting to do so is very suspect.
Enums are intended for use cases when you have literally enumerated every possible value a variable could take. Think use cases like days of the week or months of the year or config values of a hardware register. Things that are both highly stable and representable by a simple value.
Enum code smells happen most often when the different enum
's correspond to different types with different behaviours but the same interface. For example, talking to different backends, rendering different pages, etc. These are much more naturally implemented using polymorphic classes or other structures.
In short, if you need this sort of facility, look at classes where you can separate your concerns a lot easier and encapsulate functionality or other structures like dictionaries or arrays, or even consts. If you really need enum
inheritance, look at two separate enum
s that describe two different things, there shouldn't be a case to mix them.