http://d.puremagic.com/issues/show_bug.cgi?id=11105
Summary: Error on struct with multidimentional static array
initialization from its element
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2013-09-23
10:12:17 MSD ---
This used to compile:
---
struct S
{ int[2][1] a21; }
void main()
{
S s = S([1, 2]); // Error: cannot implicitly convert expression ([1, 2]) of
type int[] to int[2u][1u]
}
---
Not sure about validity of the issue as documentation doesn't provide exact
implicit conversions on struct initialization.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------