[Issue 5698] New: va_arg sets wrong length for (u)short[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 4 10:10:43 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5698
Summary: va_arg sets wrong length for (u)short[]
Product: D
Version: unspecified
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: mathias.baumann at sociomantic.com
--- Comment #0 from Mathias Baumann <mathias.baumann at sociomantic.com> 2011-03-04 10:07:48 PST ---
Created an attachment (id=929)
test case demonstrating the problem
va_arg sets wrong length for ushort[]
the attached program outputs:
vararg_:
ubyte[].length = 3
ushort[].length = 140737237065760
short[].length = 139885158469104
uint[].length = 3
vararg:
ubyte[].length = 3
ushort[].length = 0
short[].length = 0
uint[].length = 3
I tested with D1, but the bug is possibly also existant in D2.
--
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