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: nob...@puremagic.com
        ReportedBy: cbkbbej...@mailinator.com
            Blocks: 6047,6576


--- Comment #0 from Nick Sabalausky <cbkbbej...@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: -------

Reply via email to