D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 12587 - Ommiting type when auto declaration in static members results in error
Summary: Ommiting type when auto declaration in static members results in error
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-16 09:10 UTC by Temtaime
Modified: 2020-03-21 03:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Temtaime 2014-04-16 09:10:34 UTC
struct S {
	this(int) { }
	
	static immutable s = S(12);	
}

void main() {
}

Error: cannot create a struct until its size is determined

If static immutable s = S(12) changed to static immutable S s = S(12) compiles ok.