[Issue 11315] New: dmd: Internal error: ..\ztc\cgcod.c 1561

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 21 10:41:33 PDT 2013


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

           Summary: dmd: Internal error: ..\ztc\cgcod.c 1561
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at digitalmars.com


--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-10-21 10:41:32 PDT ---
int[] test()
{
    int[] x;
    int[3] y;
    x = y = [1, 2, 3];
    return x;
}

void fill()
{
    int[100] x;
}

void main()
{
    auto a = test();

    fill();

    assert(a[0] == 1);
    assert(a[1] == 2);
    assert(a[2] == 3);
}

-- 
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