9921: Enum variables of type void should be illegal

Sounds like a trivial accepts-invalid bug, but the fix is necessary for my CTFE refactoring.

The important part of this pull request is to avoid calculating min and max for an enum with an erroneous base type, because in that case it was sending garbage to the CTFE engine.