https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107622
--- Comment #12 from Wilhelm M <klaus.doldinger64 at googlemail dot com> --- (In reply to Wilhelm M from comment #11) > Without an underlying type but with -fshort-enums the underlying type should > be as small as possible. In this case this should be a uint8_t. But in this > case we get a 16-bit value for mState. This is a clear violation of > -fshort-enums. That (my previous comment) was clear nonsense. enum class has always underlying type int if not specified according to the standard.