So this will really be a constant as in “determined at compilation”.
The specification precises that a “SwitchLabel” must be
casefollowed by a constant expression
casefollowed by the name of an enum value
What is considered a valid constant expression is described here in the specification. It’s fairly limited.