www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12129] New: Wrong ddoc for one vararg.va_start argument

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12129

           Summary: Wrong ddoc for one vararg.va_start argument
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2014-02-10 04:26:30 PST ---
In the file dmd2\src\druntime\src\core\vararg.d there is:

    /**
     * This function initializes the supplied argument pointer for subsequent
     * use by va_arg and va_end.
     *
     * Params:
     *  ap      = The argument pointer to initialize.
     *  paramn  = The identifier of the rightmost parameter in the function
     *            parameter list.
     */
    void va_start(T)( out va_list ap, ref T parmn )
    {
        ap = cast(va_list)( cast(void*) &parmn + ( ( T.sizeof + int.sizeof - 1
) & ~( int.sizeof - 1 ) ) );
    }


The ddoc refers to the "paramn" argument, while va_start has a "parmn"
argument.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 10 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12129


Blake Anderton <rbanderton gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rbanderton gmail.com
         Resolution|                            |FIXED


--- Comment #1 from Blake Anderton <rbanderton gmail.com> 2014-02-11 10:13:37
PST ---
Fixed via https://github.com/D-Programming-Language/druntime/pull/721

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 11 2014