win64 vararg bug?

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Sun Feb 10 13:33:42 PST 2013


On Sun, 10 Feb 2013 09:18:58 +0100
Benjamin Thaut <code at benjamin-thaut.de> wrote:

> I have this small test program, it will crash when compiled on x64 
> windows, but it works fine on 32bit windows. What am I doing wrong?
> 
> import core.vararg;
> import std.stdio;
> 
> void print(string fmt, ...)
> {
>    auto arg = va_arg!(const(char)[])(_argptr);
>    writefln(fmt ~ arg);
> }
> 
> void main(string[] args)
> {
>    print("+++","---");
> }
> 
> Kind Regards
> Benjamin Thaut

Might be related to these:

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



More information about the Digitalmars-d mailing list