[Issue 9259] New: Passing an array of pointers to a typesafe vararg is broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 2 17:58:26 PST 2013
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: nobody at puremagic.com
ReportedBy: siegelords_abode at yahoo.com
--- Comment #0 from siegelords_abode at yahoo.com 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: -------
More information about the Digitalmars-d-bugs
mailing list