https://issues.dlang.org/show_bug.cgi?id=13125

--- Comment #8 from Jacob Carlborg <[email protected]> ---
(In reply to Walter Bright from comment #6)
> I'm going to resolve this as invalid because:
> 
> 1. I'm pretty sure it never did work, even if it compiled. va_list doesn't
> work that way. At least now the compiler flags that this construct won't
> work.

I'm pretty sure it does work. I think it's an misunderstanding due to the error
message I reported. I found this issue first on Linux 32bit and the reproduced
it on OS X 64bit where the error message is from.

> 2. va_list is magic on Posix 64, and this is allowed by the C Standard. We
> can't make the compiler make this work and be compliant with C varargs.
> 
> 3. What DWT is doing is not the right way to do things with va_list.
> 
> 4. DWT will need work to port it to 64 bits, as it never has yet run on 64.

It's my fault for creating the report this way, I thought the platform didn't
matter. This is on Linux 32bit.

Any way. Do you have a suggestion for a workaround? What is the appropriate way
to forward varargs?

--

Reply via email to