[Issue 5698] va_arg sets wrong length for (u)short[]
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jan 24 17:21:48 PST 2015
https://issues.dlang.org/show_bug.cgi?id=5698
AndyC <andy at squeakycode.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andy at squeakycode.net
--- Comment #3 from AndyC <andy at squeakycode.net> ---
The example code (after changing tango.stdc.stdarg to core.stdc.stdarg) doesnt
compile anymore (DMD v2.066.1)
I'd guess there are newer/better ways to handle this, so I'd recommend closing
it.
I get:
/usr/include/dmd/druntime/import/core/stdc/stdarg.d(67): Error: cannot
implicitly convert expression (cast(void*)(cast(uint)p + (tsize + 4u - 1u &
4294967292u))) of type void* to char*
main.d(15): Error: template instance core.stdc.stdarg.va_arg!() error
instantiating
main.d(57): instantiated from here: varar_!ubyte
--
More information about the Digitalmars-d-bugs
mailing list