www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11315] New: dmd: Internal error: ..\ztc\cgcod.c 1561

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bugzilla digitalmars.com


--- Comment #0 from Walter Bright <bugzilla 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: -------
Oct 21 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11315


Iain Buclaw <ibuclaw ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw ubuntu.com


--- Comment #1 from Iain Buclaw <ibuclaw ubuntu.com> 2013-10-21 10:50:24 PDT ---
Don't need all that file:


int[] test()
{
    int[] x;
    int[3] y;
    x = y = [1, 2, 3];
    return x;
}



Is enough to reproduce  (I believe it is the x = y = [1,2,3] line).

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