The compiler cannot optimize the values ββof unoccupied enumeration values. The section on the language specification that talks about enumerators says:
You can define an enumeration that has values ββthat are not defined by any of its counters.
therefore, an enumeration is allowed to have values ββthat are not explicitly specified in the enumeration declaration.
In addition, the section on types of bitmass provides examples that use undefined enum values, in particular, mentioning 0 as a valid flag value.
Since it has an enum value that is not declared, the compiler cannot optimize the code that used them.
source share