http://d.puremagic.com/issues/show_bug.cgi?id=8979
Summary: Can't initialize multidimensional static array with
its element
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2012-11-08
17:48:04 MSK ---
---
int[1][1] sarr = 2; // fails
struct S
{
int[1][1] sarr = 2; // fails
}
void main()
{
int[1][1] sarr = 2; // ok
S s1 = { 2 }; // fails
S s2 = { sarr: 2 }; // fails
S s3 = S(2); // ok
}
---
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------