Bug 10142 – [REG2.063a] enum value semantic problem that declared in class member

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-23T02:28:00Z
Last change time
2013-05-24T02:05:49Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-05-23T02:28:59Z
class File { enum Access : ubyte { Read = 0x01 } enum Open : ubyte { Exists = 0 } enum Share : ubyte { None = 0 } enum Cache : ubyte { None = 0x00 } struct Style { Access access; Open open; Share share; Cache cache; } enum Style ReadExisting = { Access.Read, Open.Exists }; this (const(char[]) path, Style style = ReadExisting) {} // line 99 } output: test.d(99): Error: cannot make expression out of initializer for ReadExisting
Comment #1 by k.hara.pg — 2013-05-23T20:43:19Z
Comment #2 by github-bugzilla — 2013-05-24T02:03:27Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/edafa845ba421b6fba7e0689496353222349b599 fix Issue 10142 - enum value semantic problem that declared in class member
Comment #3 by bugzilla — 2013-05-24T02:05:49Z
Also merged with 2.063