[Issue 10644] New: Win64: wrong code when passing arguments through ...

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 15 00:25:40 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10644

           Summary: Win64: wrong code when passing arguments through ...
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: r.sagitario at gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2013-07-15 00:25:39 PDT ---
An example from the unittest of std.outbuffer:

import std.outbuffer;

void main()
{
    OutBuffer buf = new OutBuffer();

    buf.printf("%d", 42);
    assert(buf.toString() == "42");
}

build and run for win64 throws the assertion.

Checking the implementation of OutBuffer.printf shows that there is no uniform
abstraction for passing arguments to printf(string format, ...) anyway, and the
Win64 version seems broken.

This also applies to stream.printf.

-- 
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