Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 12, 2012 [Issue 7893] New: Spec completely wrong for D variadic arguments on 64 bits | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7893 Summary: Spec completely wrong for D variadic arguments on 64 bits Product: D Version: D1 & D2 Platform: All OS/Version: All Status: NEW Severity: blocker Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2012-04-12 07:24:53 PDT --- The spec talks about "argptr, which is a void* pointer to the first of the variadic arguments. To access the arguments, _argptr must be cast to a pointer to the expected argument type: " ... Although this was correct for 32 bits, it is now complete nonsense -- it produces garbage on 64 bits. And it compiles silently. I think this is the most severe spec bug ever. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 12, 2012 [Issue 7893] Spec completely wrong for D variadic arguments on 64 bits | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=7893 --- Comment #1 from Don <clugdbug@yahoo.com.au> 2012-04-12 07:33:14 PDT --- And also the second example in the spec (involving core.vararg) doesn't compile, because it refers to a non-existent print() function: _arguments[i].print(); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 04, 2012 [Issue 7893] Spec completely wrong for D variadic arguments on 64 bits | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=7893 --- Comment #2 from github-bugzilla@puremagic.com 2012-05-04 10:39:11 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/71e4c9f7b3aef23b345fb541b1a91548f36e23c2 fix Issue 7893 - Spec completely wrong for D variadic arguments on 64 bits -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 04, 2012 [Issue 7893] Spec completely wrong for D variadic arguments on 64 bits | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=7893 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |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