www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11992] New: GIT HEAD Internal error: dmd-master\e2ir.c 2078

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11992

           Summary: GIT HEAD Internal error: dmd-master\e2ir.c 2078
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: temtaime gmail.com


--- Comment #0 from Temtaime <temtaime gmail.com> 2014-01-25 04:23:07 PST ---
void main() {
    immutable ushort[3] d = [ 1 ];
    ushort a;
    ushort[] arr;
    arr ~= [ a ] + d[];
}

Gives
Internal error: dmd-master\e2ir.c 2078

void main() {
    immutable ushort[3] d = [ 1 ];
    ushort a;
    ushort[] arr;
    arr ~= [ a ] + d[];
}

Gives
Error: mismatched array lengths, 3 and 1

void main() {
    immutable int[1] d = [ 1 ];
    int a;
    int[] arr;
    arr ~= [ a ] + d[];
}

Gives internal error too

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 25 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11992



--- Comment #1 from Temtaime <temtaime gmail.com> 2014-01-25 04:26:41 PST ---
Sorry, second case should be


void main() {
    immutable int[3] d = [ 1 ];
    int a;
    int[] arr;
    arr ~= [ a ] + d[];
}

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