[Issue 6665] Regression(2.055) ICE(cg87.c): static double inside closure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 13 11:37:59 PDT 2011


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



--- Comment #5 from David Simcha <dsimcha at yahoo.com> 2011-10-13 11:37:07 PDT ---
Even more thoroughly reduced test case:

void main()
{
    auto foo = Indexed([1.0f, 2, 3], [1, 2, 3]);
}

@property ref T front(T)(T[] a)
{
    return a[0];
}

struct Indexed
{
    float[] _source;
    int[] _indices;

    @property float front(float newVal)
    {
        return _source[_indices.front] = newVal;
    }

}

$ dmd test.d -release
Internal error: ../ztc/cg87.c 202

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


More information about the Digitalmars-d-bugs mailing list