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

           Summary: Variadic arguments (va_arg) break with "out"
                    parameters
           Product: D
           Version: D1
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: s...@q1cc.net


--- Comment #0 from Markus Dangl <s...@q1cc.net> 2010-06-16 17:07:48 PDT ---
Considering the following code, both methods should print 1. I get 1245056 on
the second call. Bug was present in dmd 1.056, i upgraded to 1.062 and it
remains the same.
---

module main;

import std.stdio;
import std.stdarg;

void test_ok(int i, ...) {
    writefln(va_arg!(int)(_argptr));
}

void test_fail(out int x, ...) {
    writefln(va_arg!(int)(_argptr));
}

void main() {
    int i;
    test_ok(i, 1);
    test_fail(i, 1);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to