D-Programming-Language/dmd — pull request #662 by yebblies (2012-01-31 03:17:19+00:00)
Title: Issue 4517 - final switch over with base type allows missing values

Integral promotions kills the type of the condition and the case expressions, so keep track of the original enum type and allow cases to match if they evaluate to the same integer expression.

http://d.puremagic.com/issues/show_bug.cgi?id=4517