Quiz: how did i dream up that C++ compilers optimized switches on enums as GCC a...

@void_friend@tech.lgbt

Quiz: how did i dream up that C++ compilers optimized switches on enums as GCC and Clang do not in the link gcc.godbolt.org/z/4sz3xGxh5 ?

Maybe they don't in practice for C interoperability reasons, but i regret the time spent warning for “(more_enum)2” now.

Context: the sentence “Otherwise, the values of the enumeration are the values representable by a hypothetical integer type with minimal width M such that all enumerators can be represented” in eel.is/c++draft/enum#dcl.enum-8 applies here.