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

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6416 - [CTFE] Declaration static struct is not yet implemented in CTFE
Summary: [CTFE] Declaration static struct is not yet implemented in CTFE
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
Reported: 2011年07月31日 06:44 UTC by kennytm
Modified: 2011年11月07日 23:09 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description kennytm 2011年07月31日 06:44:34 UTC
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.


AltStyle によって変換されたページ (->オリジナル) /