http://d.puremagic.com/issues/show_bug.cgi?id=3900
Summary: CTFE: Wrong return value for array.var assignment
Product: D
Version: 1.055
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Don <[email protected]> 2010-03-08 11:21:11 PST ---
struct ArrayRet{
int x;
}
int arrayRetTest(int z)
{
ArrayRet[6] w;
int q = (w[3].x = z);
return q;
}
static assert(arrayRetTest(51)==51);
==============
bug.d(23): Error: static assert ([(ArrayRet(0)),(ArrayRet(0)),(ArrayRet(0)),(A
rrayRet(51)),(ArrayRet(0)),(ArrayRet(0))] == 51) is not evaluatable at compile
t
ime
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------