www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - windows 64bit variadic functions

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
Feb 09 2013