https://issues.dlang.org/show_bug.cgi?id=15417
Iain Buclaw changed:
What|Removed |Added
CC||ibuc...@gdcproject.org
--- Comment #1 from Iai
https://issues.dlang.org/show_bug.cgi?id=15417
--- Comment #2 from Mathias Lang ---
Oops :P
Well, using `c1` doesn't change a thing here (and va_start is not needed here
according to the docs).
Test case closer to the original bug:
```
import std.stdio, core.stdc.stdarg;
class C
{
private
https://issues.dlang.org/show_bug.cgi?id=15417
Dicebot changed:
What|Removed |Added
Keywords||industry
--
https://issues.dlang.org/show_bug.cgi?id=15417
Walter Bright changed:
What|Removed |Added
CC||bugzi...@digitalmars.com
--- Comment #3 from
https://issues.dlang.org/show_bug.cgi?id=15417
--- Comment #4 from Iain Buclaw ---
(In reply to Walter Bright from comment #3)
> _argptr and _arguments are there for "D style variadics". core.stdc.stdarg
> is for "C style variadics". I.e. using va_arg for C-style will not work.
I beg your pardon
https://issues.dlang.org/show_bug.cgi?id=15417
--- Comment #5 from Iain Buclaw ---
(In reply to Mathias Lang from comment #2)
> assert(char.init == va_arg!(char)(arglist));
Is it the same if you do.
char buf;
va_arg(ap, arglist[0], &buf);
assert(char.init == buf);
--
https://issues.dlang.org/show_bug.cgi?id=15417
--- Comment #6 from Walter Bright ---
My apologies for the mis-diagnosis.
https://github.com/D-Programming-Language/dmd/pull/5326
--
https://issues.dlang.org/show_bug.cgi?id=15417
Walter Bright changed:
What|Removed |Added
Keywords||wrong-code
Hardware|x86_64
parameter passing for variadic nested functions within
aggregate
https://github.com/D-Programming-Language/dmd/commit/675a2d4e2f1f26df4f4b156181aae0c0f4c3001c
Merge pull request #5326 from WalterBright/fix15417
fix Issue 15417 - Wrong parameter passing for variadic nested functio…
--
https://issues.dlang.org/show_bug.cgi?id=15417
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|-
parameter passing for variadic nested functions within
aggregate
https://github.com/D-Programming-Language/dmd/commit/675a2d4e2f1f26df4f4b156181aae0c0f4c3001c
Merge pull request #5326 from WalterBright/fix15417
--
11 matches
Mail list logo