Bug 5919 – The declaration of static members depend in the order

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-05-03T02:03:00Z
Last change time
2014-03-19T17:58:05Z
Keywords
rejects-valid
Assigned to
nobody
Creator
rayerd.wiz

Comments

Comment #0 by rayerd.wiz — 2011-05-03T02:03:06Z
class C { static ushort x = y; static const ushort y = 1; } void main() {} main.d(3): Error: variable y cannot be read at compile time
Comment #1 by lt.infiltrator — 2014-03-19T17:58:05Z
This compiles as of v2.065.