www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7893] New: Spec completely wrong for D variadic arguments on 64 bits

reply d-bugmail puremagic.com writes:
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



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: -------
Apr 12 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7893




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: -------
Apr 12 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7893




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
prev sibling parent d-bugmail puremagic.com writes:
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: -------
May 04 2012