Bug 6416 – [CTFE] Declaration static struct is not yet implemented in CTFE

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-07-31T06:44:00Z
Last change time
2011-11-07T23:09:45Z
Keywords
rejects-valid
Assigned to
nobody
Creator
kennytm

Comments

Comment #0 by kennytm — 2011-07-31T06:44:34Z
Test case: -------------------- static assert({ static struct S {} return true; }()); -------------------- x.d(2): Error: Declaration static struct S { } is not yet implemented in CTFE ... -------------------- Declaring and using a normal inner struct is supported.
Comment #1 by bugzilla — 2011-11-07T23:09:45Z