Thread overview
[Issue 11657] Pass array literal to typesafe variadic argument on stack
Sep 20, 2014
Martin Nowak
Sep 24, 2016
Martin Nowak
May 10, 2020
Mathias LANG
May 06, 2014
https://issues.dlang.org/show_bug.cgi?id=11657

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh@quickfur.ath.cx

--
May 06, 2014
https://issues.dlang.org/show_bug.cgi?id=11657

--- Comment #2 from hsteoh@quickfur.ath.cx ---
Really? variadic arguments are not allowed to escape? Then there is a glaring hole:

    class C {
        int[] a;
        this(int[] data...) {
            a = data; // compiles
        }
    }

This case needs to be prohibited, otherwise we end up with bug #5212.

--
September 20, 2014
https://issues.dlang.org/show_bug.cgi?id=11657

--- Comment #3 from Martin Nowak <code@dawg.eu> ---
> Really? variadic arguments are not allowed to escape? Then there is a glaring hole:

Well the hole is called bug 5212 :).
Someone should fix it, but the argument is still valid.

--
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=11657

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--
September 24, 2016
https://issues.dlang.org/show_bug.cgi?id=11657

--- Comment #4 from Martin Nowak <code@dawg.eu> ---
(In reply to Martin Nowak from comment #3)
> Well the hole is called bug 5212 :).

issue 5212

--
May 10, 2020
https://issues.dlang.org/show_bug.cgi?id=11657

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.lang@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #5 from Mathias LANG <pro.mathias.lang@gmail.com> ---
Marking as duplicate of the (much more recent) issue 20734 which has been
fixed.

*** This issue has been marked as a duplicate of issue 20734 ***

--