http://d.puremagic.com/issues/show_bug.cgi?id=9259
Summary: Passing an array of pointers to a typesafe vararg is
broken
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-01-02 17:58:24 PST ---
Worked fine with 2.060, broken in 2.061. Happens both with -m32 and -m64, but
the compiler itself is 64 bit. It has to be an array of pointers, has to be
passed to a function with typesafe varargs.
void test(int*[] arr...)
{
assert(*arr[0] == 5); // This assertion fails
}
void main()
{
int a = 5;
test([&a]);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------