[Issue 6983] New: Vararg corrupts string on 64bit
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 21 08:46:17 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6983
Summary: Vararg corrupts string on 64bit
Product: D
Version: unspecified
Platform: x86_64
OS/Version: Linux
Status: NEW
Keywords: wrong-code
Severity: blocker
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: cbkbbejeap at mailinator.com
Blocks: 6047,6576
--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2011-11-21 08:45:25 PST ---
Works on 32-bit, fails on 64-bit linux:
import core.vararg;
void foo(...)
{
string str = *(cast(string*)_argptr);
assert(str.length == 0);
}
void main()
{
foo("");
}
This might be the same as issue 6758, but I'm not certain.
This may be the root cause of issue 6047 and issue 6576.
--
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