Quiz: how did i dream up that C++ compilers optimized switches on enums as GCC a...
void friend @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 https://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 https://eel.is/c++draft/enum#dcl.enum-8 applies here.