https://issues.dlang.org/show_bug.cgi?id=15817

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE, ice
           Hardware|x86                         |All
                 OS|Mac OS X                    |All

--- Comment #2 from Kenji Hara <k.hara...@gmail.com> ---
Dustmited test case:

S[] split(S)(S s)
{
    size_t istart;
    S[] result;

    foreach (i, c ; s)
        result ~= s[istart .. i];
    return result;
}

int fun(string b)
{
    auto targets = b.split;
    uint[string] counts;
    foreach (a; targets)
        counts[a]++;
    return 0;
}

void fun2()
{
    enum a = `a1`;
    static b = fun(a);
}

--

Reply via email to