www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9259] New: Passing an array of pointers to a typesafe vararg is broken

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

           Summary: Passing an array of pointers to a typesafe vararg is
                    broken
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: siegelords_abode yahoo.com



Worked fine with 2.060, broken in 2.061. Happens both with -m32 and -m64, but
the compiler itself is 64 bit. It has to be an array of pointers, has to be
passed to a function with typesafe varargs.

void test(int*[] arr...)
{
    assert(*arr[0] == 5); // This assertion fails
}

void main()
{
    int a = 5;
    test([&a]);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 02 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9259


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, wrong-code



https://github.com/D-Programming-Language/dmd/pull/1457

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 09 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9259




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/066b2801e06867d1d147be9629328a37b525bb57
fix Issue 9259 - Passing an array of pointers to a typesafe vararg is broken

https://github.com/D-Programming-Language/dmd/commit/5c00c8dae6dbc0e78a91e6d67229557b4726c9c3


Issue 9259 - Passing an array of pointers to a typesafe vararg is broken

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 21 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9259


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: -------
Jan 21 2013