Thread overview | |||||
---|---|---|---|---|---|
|
June 17, 2010 [Issue 4336] New: Variadic arguments (va_arg) break with "out" parameters | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4336 Summary: Variadic arguments (va_arg) break with "out" parameters Product: D Version: D1 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: sky@q1cc.net --- Comment #0 from Markus Dangl <sky@q1cc.net> 2010-06-16 17:07:48 PDT --- Considering the following code, both methods should print 1. I get 1245056 on the second call. Bug was present in dmd 1.056, i upgraded to 1.062 and it remains the same. --- module main; import std.stdio; import std.stdarg; void test_ok(int i, ...) { writefln(va_arg!(int)(_argptr)); } void test_fail(out int x, ...) { writefln(va_arg!(int)(_argptr)); } void main() { int i; test_ok(i, 1); test_fail(i, 1); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 17, 2010 [Issue 4336] Variadic arguments (va_arg) break with "out" parameters | ||||
---|---|---|---|---|
| ||||
Posted in reply to Markus Dangl | http://d.puremagic.com/issues/show_bug.cgi?id=4336 Markus Dangl <sky@q1cc.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Markus Dangl <sky@q1cc.net> 2010-06-16 17:18:23 PDT --- *** This issue has been marked as a duplicate of issue 1678 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 17, 2010 [Issue 4336] Variadic arguments (va_arg) break with "out" parameters | ||||
---|---|---|---|---|
| ||||
Posted in reply to Markus Dangl | http://d.puremagic.com/issues/show_bug.cgi?id=4336 --- Comment #2 from Markus Dangl <sky@q1cc.net> 2010-06-16 17:21:19 PDT --- Sorry, found the original after a while. It's still not fixed :( -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation