← Back to index
|
Original Bugzilla link
Bug 10505 – anonymous enum members cannot have different types
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-29T12:07:00Z
Last change time
2013-06-30T07:16:33Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
henning
Comments
Comment #0
by henning — 2013-06-29T12:07:18Z
enum { a = true, b = 10.0f } --- main.d(3): Error: cannot implicitly convert expression (10.0000) of type float to bool ---
Comment #1
by henning — 2013-06-29T12:11:34Z
https://github.com/D-Programming-Language/dmd/pull/2277
Comment #2
by k.hara.pg — 2013-06-30T01:09:07Z
I cannot think this is valid. What part of the spec justify this?
Comment #3
by k.hara.pg — 2013-06-30T06:09:13Z
From the discussion on github, I confirmed that this is a compiler regression in 2.064alpha.
Comment #4
by github-bugzilla — 2013-06-30T07:16:18Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/cf9547c603cf0476844bc5d800e4172a26755814
fix issue 10505 - anonymous enum members cannot have different types
https://github.com/D-Programming-Language/dmd/commit/7eb666b0afd4524c54fa96a7dce1d9640a36d4e3
Merge pull request #2277 from hpohl/10505 [REG2.064a] fix issue 10505 - anonymous enum members cannot have different types