[Issue 9643] New: [64 bit] Incorrect cdouble passing for varags
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 4 01:43:52 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9643
Summary: [64 bit] Incorrect cdouble passing for varags
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2013-03-04 01:43:50 PST ---
Test case from bug 5625 comment 3. This applies to D1 as well as D2.
---
import core.vararg;
void bar(TypeInfo[] arguments, va_list argptr)
{
creal values = va_arg!(cdouble)(argptr);
assert(values == 1.2 + 3.4i, "value didn't make it through intact");
}
void foo(...)
{
bar(_arguments, _argptr);
}
int main()
{
foo(1.2 + 3.4i);
return 0;
}
--
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