http://d.puremagic.com/issues/show_bug.cgi?id=7187


Denis <verylonglogin....@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


--- Comment #4 from Denis <verylonglogin....@gmail.com> 2012-01-08 16:49:39 MSK 
---
If const cast and struct are added, with head commit (d2b8eadf):
Assertion failure: '((ArrayLiteralExp *)se->e1)->ownedByCtfe' on line 6337 in
file 'interpret.c'
---
struct S { const(int)[] field; }

const(int)[] f() {
    int[] arr = [];
    const(int)[] str = arr;
    auto s = S(str);
    return s.field;
}

int g(const(int)[] r)
{
    auto t = r[0..0];
    return 0;
}

static assert(g(f()) == 0);
---

This affects Appender using with CTFE.

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

Reply via email to