Bug 10561 – Regression (2.064 HEAD): anon enum members no longer have enum base type

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-06T15:39:00Z
Last change time
2013-07-07T21:01:10Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-07-06T15:39:50Z
----- enum : ubyte { GL_FALSE = 0, GL_TRUE = 1, } void main() { static assert(is(typeof(GL_TRUE) == ubyte)); } ----- 2.063: $ dmd test.d > 2.064 git-head: $ dmd test.d > test.d(11): Error: static assert (is(int == ubyte)) is false
Comment #1 by henning — 2013-07-06T18:21:37Z
Comment #2 by github-bugzilla — 2013-07-07T21:00:58Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ee39e099a9886c2fceccee2a4c3e47e114e4864f fix issue 10561 - anon enum members no longer have enum base type https://github.com/D-Programming-Language/dmd/commit/fbb0ac5bed755cac79d17048fbfd4d7345b6bb17 Merge pull request #2309 from hpohl/10561 [REG2.064a] fix issue 10561 - anon enum members no longer have enum base type