[Issue 4517] final switch over with base type allows missing values

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 16 23:34:23 PDT 2012


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



--- Comment #4 from github-bugzilla at puremagic.com 2012-07-16 23:34:17 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ef6d2e16bebb7c4a0a17eb2c34af2657c9996b38
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.

Fixes issue4517

https://github.com/D-Programming-Language/dmd/commit/00778d310b6980ac7068398f4dac22aa4860b8d4
Merge pull request #662 from yebblies/issue4517

Issue 4517 - final switch over with base type allows missing values

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list